Jenkinsfile and multiple nodes
问题 I have some code that needs running (build, test, and packages in actuality but for example just running tox ) on different OSes. Currently my Jenkinsfile looks like thus: pipeline { // Where to run stuff. agent { node { label 'CentOS7' customWorkspace '/home/build/jenkins/workspace/pipelines/ook' } } // What to run goes here. stages { stage('Tox') { steps { sh 'tox -v --recreate' } } } // Clean up after ourselves. post { failure { mail subject: "\u2639 ${env.JOB_NAME} (${env.BUILD_NUMBER})