Tuesday, December 14, 2021

jenkins complete pipeline set to a node

 Using a label we can set that to agent on start of pipeline.



pipeline{
agent{
 label 'windows'
}
stages{
stage('Demo'){
steps{
bat 'echo Jenkins master slave demo'
}
}
}
}

No comments:

Post a Comment