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

Postbuild task plugin doesn't work with Flexible Publish plugin

    Details

    • Similar Issues:

      Description

      Steps to Reproduce:
      1. Create a Post-build Action of type Flexible publish

      • Run? Always
      • Action Post build task
      • Script: echo "I am script A"
        So far so good. This works just fine. Now add a second one:
        2. Create a Post-build Action of type Flexible publish
      • Run? Always
      • Action Post build task
      • Script: echo "I am script B"

      Save the project and run.
      Notice it runs Script A twice and Script B twice.
      Also notice that if you click "configure" on this project, things have gone bonkers (that's a technical term):
      There are 2 conditional steps, but they both have 2 script executions for the same condition.

      It gets more complicated if you have different conditions to run these scripts: It merges them into one condition, making it pretty much useless.

        Attachments

        1. bad.xml
          6 kB
        2. good.xml
          4 kB

          Issue Links

            Activity

            grayaii Alex Gray created issue -
            grayaii Alex Gray made changes -
            Field Original Value New Value
            Attachment bad.xml [ 26430 ]
            Attachment good.xml [ 26431 ]
            ikedam ikedam made changes -
            Assignee bap [ bap ]
            Component/s postbuild-task [ 16010 ]
            Component/s flexible-publish [ 16130 ]
            ikedam ikedam made changes -
            Summary Cannot create 2 Post Build Tasks Postbuild task plugin doesn't work with Flexible Publish plugin
            ikedam ikedam made changes -
            Link This issue is duplicated by JENKINS-29305 [ JENKINS-29305 ]
            ikedam ikedam made changes -
            Link This issue is duplicated by JENKINS-32460 [ JENKINS-32460 ]
            ikedam ikedam made changes -
            Link This issue is duplicated by JENKINS-32460 [ JENKINS-32460 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 156822 ] JNJira + In-Review [ 179406 ]

              People

              • Assignee:
                Unassigned
                Reporter:
                grayaii Alex Gray
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: