Complete the code to open the Jenkins dashboard URL.
Open your browser and go to http://localhost:[1]/
The default port for Jenkins web UI is 8080. So the URL is http://localhost:8080/.
Complete the code to log in to Jenkins web UI with the default username.
Enter username: [1]The default username for Jenkins login is 'admin'.
Fix the error in the Jenkins web UI URL to access the build history page.
http://localhost:8080/[1]/builds
The correct path segment to access build history for jobs is 'jobs'.
Fill both blanks to create a Jenkins pipeline script block that echoes a message.
pipeline {
agent any
stages {
stage('Example') {
steps {
[1] '[2]'
}
}
}
}In Jenkins pipeline scripts, the 'echo' step prints messages. 'Hello World' is a common example message.
Fill all three blanks to define a Jenkins freestyle job configuration snippet with a description and a build trigger.
<project> <description>[1]</description> <triggers> <hudson.triggers.SCMTrigger>[2]</hudson.triggers.SCMTrigger> </triggers> <builders> <hudson.tasks.Shell>[3]</hudson.tasks.Shell> </builders> </project>
The description is a simple text. The SCM trigger uses a cron spec inside <spec> tags. The shell builder runs a shell command like 'echo Build started'.