A Jenkins Pipeline is a combination of plugins that support integrating and implementing continuous delivery pipelines. A pipeline is essentially a group of events interlinked in a sequence, written using Groovy syntax.
node {
stage("stage 1") {
echo "hi"
}
}
pipeline {
agent any
stages {
stage("code") {
steps {
echo "hi"
}
}
}
}
Declarative syntax is the one used across all the real pipeline examples in this course.
pipeline {
agent any
stages {
stage("code") {
steps { echo "hello" }
}
stage("build") {
steps { sh 'cal 10 2023' }
}
stage("deploy") {
steps {
sh '''
touch file
uptime
uname
'''
}
}
}
}
Hands-on live training, real projects, and placement support — become job-ready in DevOps.
Enroll in DevOps Training →