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

Support for override Latest Build option with pipeline builds

XMLWordPrintable

      Same as JENKINS-35083 for pipelines.

      The code to fix should be straight forward to address.

      Update BitbucketBuildStatusNotifierStep.java
      add a new variable for the override Latest Build.

      private boolean overrideLatestBuild;
          public boolean isOverrideLatestBuild() { return this.overrideLatestBuild; }
          @DataBoundSetter public void setOverrideLatestBuild(boolean overrideLatestBuild) {
              this.overrideLatestBuild = overrideLatestBuild;
      
      }
      

      then in the run method

      reference isOverideLatestBuild instead of passing in false

      BitbucketBuildStatusHelper.notifyBuildStatus(step.getCredentials(build), step.isOverideLatestBuild(), build, taskListener, buildStatus);
      

            alex_juarez Alex Juarez
            jmontanari joseph montanari
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: