Using Jenkins – Build Enviroment

I have a Jenkins server that is responsible for building and deploying all of my microservices. However, each of these microservices needs a different version of a library for build and deployment. What is the best approach to separate this kind of build environment within Jenkins? Is it to use slaves? Is there a solution that involves Docker?

  • configuration management in Docker Containers
  • Concourse CI Pipeline giving error :- Get net/http: request canceled while waiting for connection
  • Docker Continuous Integration with AWS
  • docker commands not executed properly in TeamCity
  • Simple Continuous Deliver procedure for docker in aws
  • Zero downtime deploy to azure as an docker container
  • automated docker hub builds won't trigger
  • Use non-virtual folder in Docker compose as volume
  • Docker: How to use selenium server to do nightwatchJS test?
  • NodeJS & Docker: How to change the default Context an App is under: e.g. /myapp/stuff rather than /stuff
  • Docker + Ubuntu + Virtualbox: “volumes” directive in dockerfile not working
  • Docker (CentOS 7 with SYSTEMCTL) : Failed to mount tmpfs & cgroup
  • 2 Solutions collect form web for “Using Jenkins – Build Enviroment”

    Not sure the libraries are python, ruby or others. Use python as sample.

    Build seperate requirements.txt for each applications, in requirements.txt, you can define the version for each library or packages.


    In Jenkins, install plugin named shiningpanda, define the job in virtualenv builder with its own build environment.

    pip install -r requirements.txt
    # run your application here. 

    You should be fine to find similar plugin for your applications, if they are ruby, java, or others.

    each microservice should be its own build job. Jenkins keeps the workspace of each job separate, so they shouldn’t overwrite each other. ideally, each microservice is in its own source code repository or subfolder. in Jenkins’ job definition, you can point to each specific microservice repo. HTH.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.