Skip to content

Commit

Permalink
Fix compatibility with Blue Ocean plugin (#807)
Browse files Browse the repository at this point in the history
Problem was introduced in #796.
Was mentioned in comment #796 (comment)
  • Loading branch information
andrey-fomin authored Feb 13, 2024
1 parent b8fa891 commit 0ed2592
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,25 @@ public BitbucketSCMSourceBuilder(@CheckForNull String id, @NonNull String server
this.repoOwner = repoOwner;
}

/**
* Backward compatible constructor.
*
* @deprecated Added only for backward compatibility with BitbucketPipelineCreateRequest from
* <a href="https://github.com/jenkinsci/blueocean-plugin">Blue Ocean</a>. Will be removed soon.
*
* @param id the {@link BitbucketSCMSource#getId()}
* @param serverUrl the {@link BitbucketSCMSource#getServerUrl()}
* @param credentialsId the credentials id.
* @param repoOwner the repository owner.
* @param repoName the project name.
*/
@Deprecated
public BitbucketSCMSourceBuilder(@CheckForNull String id, @NonNull String serverUrl,
@CheckForNull String credentialsId, @NonNull String repoOwner,
@NonNull String repoName) {
this(id, serverUrl, credentialsId, repoOwner, repoName, null);
}

Check warning on line 100 in src/main/java/com/cloudbees/jenkins/plugins/bitbucket/BitbucketSCMSourceBuilder.java

View check run for this annotation

ci.jenkins.io / Code Coverage

Not covered lines

Lines 99-100 are not covered by tests

/**
* The id of the {@link BitbucketSCMSource} that is being built.
*
Expand Down

0 comments on commit 0ed2592

Please sign in to comment.