jenkins - Run stages in multiple nodes -
i have declarative pipeline. in pipeline want various stages not executed 1 multiple nodes (later stages, node specific, depend on these). somehow possible?
sure, can select different nodes in different stages based on label:
pipeline { agent none stages { stage('build') { steps { node('docker') { sh 'echo $hostname' } } } stage('test') { steps { node('rbenv') { sh 'echo $hostname' } } } } }
does make sense?
Comments
Post a Comment