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