DEPRECATED - see Setup
This document describes how to create a shared CloudBees Jenkins Enterprise Master environment on jenkins.beedemo.net that the participants will use.
The following instructions can be used to provision a customized CJE Master on jenkins.beedmeo.net for the workshop:
- Navigate to jenkins.beedemo.net (https://jenkins.beedemo.net/) and login;
- Click on New Item at the top of the left menu;
- Enter an item name for your workshop master ;
- Select Managed Master and click the OK button;
- On the Managed Master configure page:
- Under Provisioning: 1. Select Intro to Declarative Pipeline for the Docker image 2. Double the Jenkins Master Memory in MB setting from 2048 to 4096 3. Increase the Jenkins Master CPUs from 0.2 to 0.8
- Uncheck the Enabled checkbox for Health Reporting
- Uncheck the Enable checkbox for Analytics Reporting
- VERY IMPORTANT - check the Opt-out checkbox for Security Setting Enforcement
- Once the workshop Managed Master is up and running login with the User admin and provided Password
- Ensure that you see the following items on the first page:
- dev-folder a CloudBees Folder Template
- Operations Center Shared Templates shared Docker Agent Templates from CJOC
- workshop Folder - folder in which participants will be able to create individual folders
- Goto to the Workshop URL provided by the instructor;
- Click on the Create an account link
- Complete the Sign up form (all fields are required) and click the Sign up button;
- You should see a Success page - click on the top page link;
- Click on the link for the workshop folder;
- In the left menu, click on the New dev-folder link;
- For Enter an item name enter your workshop Username, select dev-folder and click the OK button;
- On the next screen, click the Save button;
- You will now be in your very own dev-folder where you will be able to create and edit Pipelines for this workshop.
In exercise 1.7 of the workshop participants will use a function contained within a Global Pipeline Library. Prior to running that exercise you need to add the library to the Jenkins Master using the following steps:
- Click on the Manage Jenkins link
- Click on Configure System
- Scroll down to Global Pipeline Libraries and click on Add
- Enter the following in the form fields:
- Name:
SharedLibs
- Default version:
master
- Name:
- Select Modern SCM
- Select Github
- For Credentials select Add and fill out a new **Username with password:
- Username:
PipelineHandsOn
- Password: Your Github token
- ID: PipelineHandsOn-ID
- Description: can be left blank
- Username:
- Select your newly added Credential from the dropdown list
- Enter PipelineHandsOn in the Owner text box
- Select shared-libraries from the Repository drop down
- Click on Save
In exercise 1.3 participants will use the test-user
credential in a pipeline so it needs to be added in advance. To add the credential:
- From the Jenkins Master home page click on Credentials, then click on System, then Global credentials (unrestricted);
- Click on Add Credentials;
- In the Add Credentials form select Username with password, enter
test-user
for Username, Password, and the ID field; - Click on OK to save the new credential;
Prior to the workshop you should send out an email to participants to let them know what they will need to fully participate in the workshop. Below is a sample of the content you should send:
Dear Intro to Declarative Pipeline Workshop Participant:
In order to follow along with the hands on portion of the workshop students should have the following resources available to them:
* Internet access
* An account on Github.com and a basic understanding of how to use Github and Git to do things like fork a repository, edit files in the web UI, and create pull requests
* A personal access token for your Github account (https://github.com/PipelineHandsOn/intro-to-declarative-pipeline/blob/master/Github-Personal-Access-Token.md) with the following permissions:
- repo: all
- admin:repo_hook: all
- admin:org_hook
- user: all
* Access to the CloudBees Jenkins Master hosted on AWS used for the workshop (link to be provided the day of the workshop)
Thanks and I look forward to meeting working with everyone soon!
[Your name here obviously]
It is always a good idea to test the master prior to the workshop to avoid any surprises. The best way to do that is to run through some of the exercises and verify the participant user accounts.