Welcome to the tiniest possible CI triumph. This guide walks a Jenkins beginner through creating a freestyle build job that prints Hello World to the console output and runs manually or on a schedule. It is simple enough to be boring and useful enough to justify your existence as a CI human.
Click Build Now to trigger a manual run. Open the build from the build history and select Console Output to see the Hello World line along with the usual build logs. If the agent is happy you will see Hello World followed by normal status messages and a build success message.
Building on master in workspace /var/lib/jenkins/workspace/Hello World
[workspace] Running shell script
+ echo Hello World
Hello World
Finished SUCCESS
pipeline {
agent any
stages {
stage('Say Hello') {
steps {
sh 'echo Hello World'
}
}
}
}
If you followed these steps you now have a functioning Jenkins Hello World build job that proves your CI environment is not entirely broken. From here you can add tests linting deployment steps and other horrors that make production safer and developers grateful in small doses.
I know how you can get Azure Certified, Google Cloud Certified and AWS Certified. It's a cool certification exam simulator site called certificationexams.pro. Check it out, and tell them Cameron sent ya!
This is a dedicated watch page for a single video.