CloudBees CI Workshop Set-up

Instructor led video of lab.

Today’s URL for the CloudBees CI Workshop environment will be https://ci.aws.cbws.io/cjoc/ this is a CloudBees CI instance installed on EKS. From here you will create a login for CloudBees CI and then return to the CI Workshop Set-up.. This login will be used to create your own Jenkins master for the purposes of the labs.

Login to CloudBees CI

  1. Goto to the Workshop URL provided by the instructor.
  2. Enter the username and password you created earlier into the login screen.

Create a Team Master

  1. If not in CloudBees Team UI, click on the Teams link in the left menu.

  2. Click on the Create team button in the center of your screen.

  3. Name this team - enter a name for your team - IMPORTANT: to ensure uniqueness, use your GitHub username and then click Next.

  4. Choose an icon for this team to help uniquely identify your team - select an icon and color for your team and then click Next.
  5. Add people to this team - your user will show up as a Team Admin and we won’t be adding any additional users right now, but feel free to look around and then click Next.
  6. Select the cluster endpoint to create the team in - just stick with the default value kubernetes and click Next.
  7. Select team master creation recipe - click on the drop-down to see the options, but just stick with the Basic recipe.
  8. Finally, click the Create team button.

  9. IMPORTANT - While your Core Team Master is being created (it takes anywhere from 2-3 minutes to provision your Team Master), move onto the next section.

Create a GitHub.com Account

Feel free to use an existing GitHub.com account, otherwise create one: 1. In a new browser tab or window, visit https://github.com/join and fill in the required fields to create a user account. 2. Select “Unlimited public repositories for free” when choosing your plan. 3. Verify your email account to ensure you account is activated. An activated account will be required for the rest of this workshop.

Create a GitHub Personal Access Token

  1. Click on this link to automatically select the required Personal access token settings
  2. Enter a name for your New personal access token (PAT) and notice that all the necessary scopes have already been checked off for you by using the link from above.

  3. Click on Generate Token button at the bottom of the page.
  4. 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

  1. On GitHub navigate to Organizations: https://github.com/settings/organizations (after logging in)
  2. Click on New Organization

  3. Fill in the Organization Name, Billing Email, and click on Create Organization

  4. On the Invite organization members - just click the Continue button. On the next page, Enter Organization Details, either click Submit button or skip this step to finish creating the GitHub Organization.

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.

Run the CI Workshop Setup Pipeline

You should see the following Blue Ocean Pipelines screen with a Pipeline named CI-workshop-setup for your Team:

  1. Click on the core-workshop-setup Pipeline job.
  2. On the next screen, click on the Run button in the middle of the screen.

  3. Fill in the required parameters:

    1. githubPat - the GitHub Personal Access Token you created above.
    2. The GitHub username/account id you used to create the above GitHub Personal Access Token.
    3. The name of the GitHub Organization you created above specifically for this workshop
    4. The Kubernetes Namespace where your Team Master has been deployed - only change the default value if you are instructed to do so.
  4. Once you have provided the above required input parameters click the Run button at the bottom of the parameters input form.
  5. Blue Ocean will automatically switch to the Pipeline Activity screen, click anywhere on the Pipeline run row to see the Pipeline run and view the logs. But make sure you don’t click on the Stop button to the right of the red box in the screenshot below.

  6. Once the core-workshop-setup Pipeline job completes successfully your Team Master will be restarted so you should see a Connect lost: waiting alert in the bottom right of your Blue Ocean screen.

    You may also experience a 503 Service Temporarily Unavailable screen - that is because the actual Kubernetes Pod that your Team Master is running in is being re-created. Your Team Master will return in a few minutes.

For instructor led workshops please returns to the workshop slides.

Otherwise, you may proceed to the next lab: Configuration as Code (CasC) for CloudBees CI where we will explore your individual fork of the core-config-bundle repository or choose another lab on the Main Lab Page.