2 minute read

Jenkins Essentials Lab Instance Setup

https://university.cloudbees.com/

CloudBees University is offering several courses on Jenkins to help prepare for the Certified Jenkins Engineer (CJE) exam.

Jenkins

This is a hands-on class with a lab environment where you can follow along with the material and perform the lab exercises at the end of each section.

If you are not a CloudBees customer, partner, or employee, this page explains how to install and access the provided Virtual Machine to use as your CloudBees lab environment.

Getting lab resources

After installing the software prerequisites:

  • Right click this link to the virtual machine’s ZIP archive to open it in a new tab or window. When you click OK, the archive downloads to your local disc.
  • Extract the virtual machine ZIP archive to your local disc. This archive contains your virtual machine image and automated settings in a folder named cloudbees-training-admin-fundamentals.
(base) pradeep:~$pwd
/Users/pradeep
(base) pradeep:~$
(base) pradeep:~$cd Downloads/cloudbees-training-admin-fundamentals
(base) pradeep:~$ls
Vagrantfile					cb-training-admin-fundamentals-1596650931.box
(base) pradeep:~$
(base) pradeep:~$cat Vagrantfile 

Vagrant.configure("2") do |config|
  config.vm.box = "cb-training-admin-fundamentals-1596650931"
  config.vm.box_url = "cb-training-admin-fundamentals-1596650931.box"
end
(base) pradeep:~$
(base) pradeep:~$vagrant up
==> vagrant: A new version of Vagrant is available: 2.3.0 (installed version: 2.2.19)!
==> vagrant: To upgrade visit: https://www.vagrantup.com/downloads.html

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'cb-training-admin-fundamentals-1596650931' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'cb-training-admin-fundamentals-1596650931' (v0) for provider: virtualbox
    default: Unpacking necessary files from: file:///Users/pradeep/Downloads/cloudbees-training-admin-fundamentals/cb-training-admin-fundamentals-1596650931.box
==> default: Successfully added box 'cb-training-admin-fundamentals-1596650931' (v0) for 'virtualbox'!
==> default: Importing base box 'cb-training-admin-fundamentals-1596650931'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: cloudbees-training-admin-fundamentals_default_1662627947779_90103
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 5000 (guest) => 5000 (host) (adapter 1)
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: butler
    default: SSH auth method: private key
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
    default: No guest additions were detected on the base box for this VM! Guest
    default: additions are required for forwarded ports, shared folders, host only
    default: networking, and more. If SSH fails on this machine, please install
    default: the guest additions and repackage the box to continue.
    default: 
    default: This is not an error message; everything may continue to work properly,
    default: in which case you may ignore this message.
(base) pradeep:~$

(base) pradeep:~$vagrant plugin install vagrant-vbguest
Installing the 'vagrant-vbguest' plugin. This can take a few minutes...
Fetching micromachine-3.0.0.gem
Fetching vagrant-vbguest-0.30.0.gem
Installed the plugin 'vagrant-vbguest (0.30.0)'!
(base) pradeep:~$
(base) pradeep:~$vagrant up                            
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
(base) pradeep:~$
(base) pradeep:~$vagrant status
Current machine states:

default                   running (virtualbox)

The VM is running. To stop this VM, you can run `vagrant halt` to
shut it down forcefully, or you can run `vagrant suspend` to simply
suspend the virtual machine. In either case, to restart it again,
simply run `vagrant up`.
(base) pradeep:~$

Jenkins Jenkins Jenkins Jenkins Jenkins

Now that the lab environment is setup, let us explore the main features of Jenkins.

Back to Top ↑