Details

    • Similar Issues:

      Description

       

      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

       

        Attachments

          Issue Links

            Activity

            Hide
            abayer Andrew Bayer added a comment -

            So first, you can't run a node step inside a post condition unless you're inside a script block. But in general, node or agent's label type will allow you to do labels like A || B.

            Show
            abayer Andrew Bayer added a comment - So first, you can't run a node step inside a post condition unless you're inside a script block. But in general, node or agent 's label type will allow you to do labels like A || B .
            Hide
            ruudp Ruud P added a comment -

            i do it like that at this moment and it is working for 1 node.. but 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 a and not on b

            Show
            ruudp Ruud P added a comment - i do it like that at this moment and it is working for 1 node.. but 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 a and not on b
            Hide
            ruudp Ruud P added a comment -

            i do it like that at this moment and it is working for 1 node.. but 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 a and not on b

            Show
            ruudp Ruud P added a comment - i do it like that at this moment and it is working for 1 node.. but 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 a and not on b

              People

              • Assignee:
                Unassigned
                Reporter:
                ruudp Ruud P
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: