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

Nested buildflow ignore instructions are not working

    Details

    • Similar Issues:

      Description

      IGNORE { } instructions are working fine if a job does not exists. If they are nested in PARALLEL { } blocks, the build stops if an "ignore" job is failing.

      For an example with a failing test case, see:

      https://github.com/kremers/build-flow-plugin/commit/5aefdf131b35ea88e6ad6478d70e30dece34bd09

      testIngoreInParallelBlock(com.cloudbees.plugins.flow.ParallelTest) Time elapsed: 10.406 sec <<< FAILURE!
      junit.framework.AssertionFailedError: job job3 didn't run
      at junit.framework.Assert.fail(Assert.java:57)
      ...

        Attachments

          Activity

          Hide
          thomaste stefan thomasson added a comment -

          You forgot to wrap the ignore in curly braces.
          This works for me,

          parallel(

          { build("job1") }

          ,
          { ignore(FAILURE)

          { build("IdoNotExist") }

          },

          { build("job2") }

          )

          Show
          thomaste stefan thomasson added a comment - You forgot to wrap the ignore in curly braces. This works for me, parallel( { build("job1") } , { ignore(FAILURE) { build("IdoNotExist") } }, { build("job2") } )

            People

            • Assignee:
              Unassigned
              Reporter:
              martin_kremers Martin Kremers
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: