Complete the code to run the Jenkins pipeline on an agent with the label 'linux'.
pipeline {
agent { label '[1]' }
stages {
stage('Build') {
steps {
echo 'Building on Linux agent'
}
}
}
}Complete the code to run the Jenkins pipeline on an agent with the label 'docker'.
pipeline {
agent { label '[1]' }
stages {
stage('Test') {
steps {
echo 'Running tests on Docker agent'
}
}
}
}Fix the error in the Jenkins pipeline to correctly select an agent with the label 'windows'.
pipeline {
agent { label '[1]' }
stages {
stage('Deploy') {
steps {
echo 'Deploying on Windows agent'
}
}
}
}Fill both blanks to run the pipeline on an agent with label 'linux' and specify the stage name as 'Build'.
pipeline {
agent { label '[1]' }
stages {
stage('[2]') {
steps {
echo 'Building project'
}
}
}
}Fill all three blanks to run the pipeline on an agent with label 'docker', name the stage 'Test', and print 'Running tests'.
pipeline {
agent { label '[1]' }
stages {
stage('[2]') {
steps {
echo '[3]'
}
}
}
}