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

build result "NOT_BUILD" results in failed build status in bitbucket

XMLWordPrintable

      I'd like to exit our pipeline early if It detects certain string in the last commit.

      If it detects the string i'm using the following code to change the buildStatus to "NOT_BUILD".

      `currentBuild.result = "NOT_BUILD";`

      Unfortunately it is still failing the commit in bitbucket. Were I would expect it to not set a status at all.

            amuniz Antonio Muñiz
            rogierhelmer Rogier Helmer
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: