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

Post build task - 'Add another task' does not work

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • postbuild-task-plugin
    • Ubuntu 10.04.2 LTS
      Jenkins ver. 1.445
      Hudson Post build task 1.8

      On a maven2/3 project:

      • Post-build actions
        • Post build task (checked)
          • Add a Task
            • Save
              > RESULT = Post build task saved and works as expected

      Then on the same job, go to configure:

      • Post-build actions
        • Post build task (already checked)
          • 'Add another task'
            • Save
              > RESULT = This second Post build task is not saved. This task is lost when you go back to the job configuration

          [JENKINS-12303] Post build task - 'Add another task' does not work

          Same here, updating the config.xml doesn't help much as well.

          Andrian Jardan added a comment - Same here, updating the config.xml doesn't help much as well.

          b2jrock added a comment -

          Same here. I've found that you can work around by deleting all the tasks and adding them all at the same time rather than adding on an existing config.

          b2jrock added a comment - Same here. I've found that you can work around by deleting all the tasks and adding them all at the same time rather than adding on an existing config.

          Ken Morse added a comment -

          @b2jrock – great work-around, will have to give that a try!

          Ken Morse added a comment - @b2jrock – great work-around, will have to give that a try!

          Mike Roberts added a comment - - edited

          Workaround doesn't work for me.

          I believe you can have multiple tasks as long as the two check boxes ("Run script only if all previous steps were successful" and "Escalate script execution status to job status") are set the same on every task. If you try to have separate options checked on the tasks then it fails to save all but the first task with a later task's check box information.

          Mike Roberts added a comment - - edited Workaround doesn't work for me. I believe you can have multiple tasks as long as the two check boxes ("Run script only if all previous steps were successful" and "Escalate script execution status to job status") are set the same on every task. If you try to have separate options checked on the tasks then it fails to save all but the first task with a later task's check box information.

          Same here, Jenkins 2.7.1

          João Leonardo Pereira added a comment - Same here, Jenkins 2.7.1

          Issue

          In the end, it seems that Post build task does not manage correctly multi-tasks

          Environment

          Jenkins LTS
          Post build task 1.8

          Steps to reproduce

          1.- Fresh installation
          2.- Create a new Freestyle Job item
          3.- Add Post-build Actions > Add Post build task > Add another task
          4.- Save the job
          5.- Open the Job configuration > Both tasks are there
          6.- Enabled one (or both) of the following flags in first or second task

           Run script only if all previous steps were successful 

          OR

           Escalate script execution status to job status 

          7.- Save the job
          8.- Open the Job configuration > Just the first task has been serialized

          Carlos Rodríguez López added a comment - Issue In the end, it seems that Post build task does not manage correctly multi-tasks Environment Jenkins LTS Post build task 1.8 Steps to reproduce 1.- Fresh installation 2.- Create a new Freestyle Job item 3.- Add Post-build Actions > Add Post build task > Add another task 4.- Save the job 5.- Open the Job configuration > Both tasks are there 6.- Enabled one (or both) of the following flags in first or second task Run script only if all previous steps were successful OR Escalate script execution status to job status 7.- Save the job 8.- Open the Job configuration > Just the first task has been serialized

          Owen Wood added a comment - - edited

          It appears that saving multiple tasks work if you select both "Run script only if all previous steps were successful" & "Escalate script execution status to job status " on all tasks. If those settings differ then only the first task is retained on save.

          Owen Wood added a comment - - edited It appears that saving multiple tasks work if you select both "Run script only if all previous steps were successful" & "Escalate script execution status to job status " on all tasks. If those settings differ then only the first task is retained on save.

          Denis Raj added a comment -

          Keeping 2 different combination of those checkbox also did not work.

          Denis Raj added a comment - Keeping 2 different combination of those checkbox also did not work.

          Derf Skren added a comment -

          Seeing same issue, still broken 7 years after report? Workaround doesn't work. This is really bad.

          Derf Skren added a comment - Seeing same issue, still broken 7 years after report? Workaround doesn't work. This is really bad.

          Sagar added a comment -

          Hi guys, is this solved yet?
          Still broken - 2021.

          Sagar added a comment - Hi guys, is this solved yet? Still broken - 2021.

            madsnielsen Mads Nielsen
            ashokm Ashok Manji
            Votes:
            6 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated: