title: Jenkinsfile and multiple nodes
body: <p>I have some code that needs running (build, test, and packages in actuality but for example just running <code>tox</code>) on different OSes. Currently my <code>Jenkinsfile</code> looks like thus:</p>
  
  <pre><code>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}) has failed",
                      body: """Build ${env.BUILD_URL} is failing!
      Somebody should do something about that\u2026""",
                            to: "devs@example.com",
                       replyTo: "devs@example.com",
                          from: 'jenkins@example.com'
              }
          }
      }
  }
  </code></pre>
  
  <p>The middle bit, I want to run on two different <code>nodes</code>: one for OS 1 and one for OS 2.</p>
  
  <p><em>How do I do that?</em></p>