- CloudBees Jenkins Team Master and Agent(s) run as Docker containers
- Agents can be spawned and destroyed dynamically
- All executors support Maven and Docker Pipeline
This demo requires that you have Docker installed.
Modify the .env.sample
file to make it specific to your environment. You should only need to touch USER_M2
, all others may remain as-is. Then run cp .env.sample .env
to initialize the environment.
Finally, run make
to let Docker do its thing.
To start CJT, run docker-compose up
. Logs will be streamed to the console, and CJT can be stopped with control+C. Alternatively you can run CJT detached using docker-compose up -d
, access logs with docker logs cjt
, and stop using docker-compose down
.
You may then access CJT at http://localhost:9090 and complete the Getting Started wizard.
To start Agent(s), run make agent
. To stop all Agents, run make stop
.
NOTE: Swarm Agents require a user with appropriate permissions to connect to CJT. The default is admin/admin and you can change it in your .env
if you wish.
To upgrade to a newer version, first stop CJT with control+C or docker-compose down
, then stop Agents with make stop
, then run make upgrade
.