We have set up a Docker image so that users can quickly try out CloudBees Jenkins Operations Center by CloudBees.
The demo sets up the following:
- CloudBees Jenkins Operations Center Master
- Client Master in a highly available mode with a backup master
- Shared Slaves
- Slaves local to client master
- Folders/Folders plus: ties slaves to a particular folder
- RBAC with a secret project
Follow the excellent tutorial, if you like to set Jockey up yourself
Run docker on your machine, if you are on mac - you will have to edit /etc/host to add the DOCKER_HOST IP address and map it to jockey.local.
Now run the docker image
docker run -p 80:80 -it -h jockey.local cloudbees/joc-trial
Navigate to jockey.local/operations-center, accept the license on the license screen and log into Jockey u/p: admin/admin (or harpreet/harpreet).
Jockey server automatically grants license to individual masters but to get this place in the demo, we need to explicitly connect a client master to Jockey server.
Click on Jenkins-a (which is the client master in the demo)
Click “Release” link.
Click the “Release” button. This will take you to a screen that shows the “connection details” for connecting to the client master - make sure you copy this you will need it in the next step.
Demo jobs and configurations
Navigate to jockey.local/jenkins-a. You will be presented with a license screen, choose the “I have connection details for a CloudBees Jenkins Operations Center server that will issue my license key” and paste the connection details from the previous step.
Once done, you can click on “jenkins-a” and navigate to the Jenkins client master. There are numerous jobs and folders that demo individual features:
- backup-hourly-shared-slave: shows a backup job using the backup plugin that uses shared slaves setup on Jockey server.
- gasp-server-on-slave-from-operations-center: a maven job using a shared slave
- secret-project: you can view this folder either as an admin or as stephen (u/p stephen/stephen). If using other logins, you cannot view the folder.
- slave-per-folder-and-templates: demos the folders plus and templates feature from CloudBees Jenkins Enterprise.
Navigate to the secret-project folder and click on “Groups” to see how the permissions are setup. In this case, we have added a secret-group with stephen as the only member here. If you navigate to roles, you will see that we have filtered out developer and browser roles.
Slave-per-folder and Templates
Monitoring on CloudBees Jenkins Operations Center Dashboard
Global Security Configuration
We have used mock-security-realm plugin for authentication. The first entry is user name and password and the second entry mimics an external group. For e.g: “admin admin-ext” translates to a u/p of admin/admin and admin belongs to an external group called “admin-ext”