Setup a work environment for the lessons provided in this workshop. Ask the instructor for the URL of the server you will be using during the workshop.
Today's URL for the CloudBees Jenkins environment is https://cje.workshop.beedemo.net
The URL for the GitHub Repository with these instructions and the exercises is https://github.com/cloudbees/intro-to-declarative-pipeline/
- Goto to the Workshop URL provided by the instructor;
- Click on the Create an account link in the middle of the page under the Login button.
- 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;
Next, everyone will get their own Jenkins masters referred to as a Team Master and we will create, edit and interact with our Pipelines in Blue Ocean.
- If not in Blue Ocean, click on the Teams link in the left menu;
- Click on the Create team button in the center of your screen;
- Name this team - enter a name for your team - perhaps your first initial with your last name (Team names must be unique) and then click Next;
- Choose an icon for this team - select an icon and color for your team and then click Next;
- Add people to this team - your user will show up as a Team Admin and we won't be adding any additional users, but feel free to look around and then click Next;
- Select team master creation recipe - click on the drop-down and select the Java & Web Development recipe;
- Finally, click the Create team button.
- While your master is being created, move onto the next section Create a GitHub.com user account
Setup a GitHub.com user account that will be used later in this workshop. If you have an existing GitHub.com account you will be able to use it if you are comfortable using that account to create a GitHub Organization later in the workshop.
- Visit https://github.com/join and fill in the required fills to create a user account.
- Select "Unlimited public repositories for free" when choosing your plan.
- Verify your email account to ensure you account is activated. An activated account will be required in the next few exercises.
The following instructions cover how to create a Github Personal Access Token that you will use within Jenkins to connect Pipelines, Multibranch Pipelines, and Github Organization Projects to your Github repositories.
- Click on this link to automatically select the required Personal access token settings:
- Click on Generate Token
- As the success message says: Make sure to copy your new personal access token now. You won’t be able to see it again!
Create a Github organization to use for this workshop:
- On Github navigate to Organizations: https://github.com/settings/organizations (after logging in)
- Click on New Organization
- Fill in the Organization Name, Billing Email, and click on Create Organization
- On the Invite organization members - just click the Finish button.
NOTE: Even though you have to provide an email for billing, you will not be charged anything as long as you choose the free option.
The following instructions cover how to create a Github repository under the GitHub Organization you created above.
- If not already there, navigate to the GitHub Organization you created above.
- Click on the Create a new repository button
- Enter a Repository name for your repository - such as intro-pipeline
- Check the Initialize this repository with a README checkbox
- Click the Create repository button
You should see the following Create a new Pipeline screen for your Team:
You may proceed to the first set of exercises - Declarative Syntax Basics - when your instructor tells you.
NOTE: If you see the following screen then please follow these instructions.