0
0
Jenkinsdevops~15 mins

Jenkins versions and LTS - Mini Project: Build & Apply

Choose your learning style9 modes available
Understanding Jenkins Versions and LTS
📖 Scenario: You are a DevOps engineer setting up Jenkins for your team. You need to understand the difference between Jenkins versions and the Long-Term Support (LTS) releases to choose the right one for your project.
🎯 Goal: Learn how to identify Jenkins versions and understand the purpose of LTS releases by creating variables to hold version information and printing them.
📋 What You'll Learn
Create variables to store Jenkins version strings
Add a variable to indicate if the version is LTS or not
Use conditional logic to display version type
Print the Jenkins version and its LTS status
💡 Why This Matters
🌍 Real World
Choosing the right Jenkins version helps teams maintain stable and secure CI/CD pipelines.
💼 Career
Understanding Jenkins versions and LTS is essential for DevOps engineers managing build automation tools.
Progress0 / 4 steps
1
Create Jenkins version variables
Create two string variables called jenkins_version and lts_version with the exact values "2.375.3" and "2.387.1" respectively.
Jenkins
Need a hint?

Use simple string assignment like variable = "value".

2
Add LTS status variable
Create a boolean variable called is_lts and set it to True to indicate the LTS version.
Jenkins
Need a hint?

Use is_lts = True to mark the LTS version.

3
Write conditional logic to identify version type
Write an if statement that checks is_lts. If True, assign version_type the string "Long-Term Support". Otherwise, assign version_type the string "Regular Release".
Jenkins
Need a hint?

Use if is_lts: to check the boolean and assign version_type accordingly.

4
Print Jenkins version and its type
Print the string "Jenkins version:" followed by lts_version, then print "Version type:" followed by version_type. Use two separate print statements.
Jenkins
Need a hint?

Use print("Jenkins version:", lts_version) and print("Version type:", version_type).