Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-50044

Run a task on node x or node y

XMLWordPrintable

       

      it is not possible to run a post build on node A or Node B  or C (anything that is available)

      post {
          always {
            node(label: 'A' or 'B' or 'C') {
              foo()}

      **when i add like 'a||b' or 'a&&b' it say there is no node with the name 'a&&b' i also try like 'a'&&'b' then the code is running only on node a and not on node b. I use declarative pipeline

       

            Unassigned Unassigned
            ruudp Ruud P
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: