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

Postbuild task plugin doesn't work with Flexible Publish plugin

      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.

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

          [JENKINS-23952] Postbuild task plugin doesn't work with Flexible Publish plugin

          Alex Gray created issue -

          Alex Gray added a comment -

          I've attached the "good" and "bad" xml files, if that helps.

          Alex Gray added a comment - I've attached the "good" and "bad" xml files, if that helps.
          Alex Gray made changes -
          Attachment New: bad.xml [ 26430 ]
          Attachment New: good.xml [ 26431 ]

          ikedam added a comment -

          Please write environments where you have the problem (the version of Jenkins, Flexible publish plugin, Post build task plugin).

          This is an issue of Post build task plugin.
          It is built for so old Jenkins (1.357), does not support structured form submission, and does not work with Flexible Publish plugin which is designed for modern plugins supporting structured form submission.

          I refile this issue for postbuild-task plugin, but I'm not sure there is still a maintainer for postbuild-task plugin.

          You might try any-buildstep plugin, which allows to use builders (such as execute shell, execute Windows batch) for actions of Flexible Publish.

          ikedam added a comment - Please write environments where you have the problem (the version of Jenkins, Flexible publish plugin, Post build task plugin). This is an issue of Post build task plugin . It is built for so old Jenkins (1.357), does not support structured form submission , and does not work with Flexible Publish plugin which is designed for modern plugins supporting structured form submission. I refile this issue for postbuild-task plugin, but I'm not sure there is still a maintainer for postbuild-task plugin. You might try any-buildstep plugin , which allows to use builders (such as execute shell, execute Windows batch) for actions of Flexible Publish.
          ikedam made changes -
          Component/s New: postbuild-task [ 16010 ]
          Component/s Original: flexible-publish [ 16130 ]
          Assignee Original: bap [ bap ]
          ikedam made changes -
          Summary Original: Cannot create 2 Post Build Tasks New: Postbuild task plugin doesn't work with Flexible Publish plugin
          ikedam made changes -
          Link New: This issue is duplicated by JENKINS-29305 [ JENKINS-29305 ]
          ikedam made changes -
          Link New: This issue is duplicated by JENKINS-32460 [ JENKINS-32460 ]
          ikedam made changes -
          Link Original: This issue is duplicated by JENKINS-32460 [ JENKINS-32460 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 156822 ] New: JNJira + In-Review [ 179406 ]

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

              Created:
              Updated: