Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-3202

Allow to not fail a Jenkins X build if the JIRA step fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Jenkins X

      Description

      Following NXBT-3199, we now have  a platform-staging Jenkins X team.
      It uses a dedicated Jenkins image with no configuration for the JIRA plugin to prevent the build from commenting the JIRA issues.
      Yet, the builds are failing with:

      [JIRA] No JIRA site is configured for this project. This must be a project configuration error
      

      when trying to run:

        post {
          always {
            script {
              if (BRANCH_NAME == 'master') {
                // update JIRA issue
                step([$class: 'JiraIssueUpdater', issueSelector: [$class: 'DefaultIssueSelector'], scm: scm])
              }
            }
          }
        }
      

      We should be able to not fail the whole build in this case.

      We've already tried catchError from the Pipeline: Basic Steps plugin but without success (though it works with some simple step like sh 'exit 1').
      Using the latest version of the plugin doesn't help, 2.19 at this time.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 2 hours, 30 minutes
                  1d 2h 30m