In order to ensure the latest features, security, and compatibility are maintained, we need to update and upgrade our Jenkins installations. In this hands-on lab, we will have the opportunity to upgrade a Jenkins server to the latest available version. We will then ensure all the related tasks, such as data storage and possibly plugin updates, are completed.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Verify Jenkins Requires an Update and Get the Link to the New Version
- Log in to the Jenkins GUI using the following credentials:
- User: student
- Password: OmgPassword!
- Go to Manage Jenkins, and take note of the messages.
- Copy the download link for the Jenkins WAR file.
- Log in to the Jenkins GUI using the following credentials:
- Log in to the Jenkins Server via SSH and Perform the Update
- Log in to the Jenkins server via SSH using the credentials provided in the lab.
- Get the new WAR file by running
wget
with the link copied from the Jenkins GUI. - Copy the old WAR file from
/usr/lib/jenkins
as a backup. - Place the new WAR file in the previous WAR file’s place.
- Restart the Jenkins service.
- Log in to the Jenkins GUI and Update Plugins
- Log in to the Jenkins GUI using the following credentials:
- User: student
- Password: OmgPassword!
- Verify the version of Jenkins.
- Update plugins as necessary, and restart as needed.
- Verify all available updates have been done.
- Log in to the Jenkins GUI using the following credentials: