Skip to content

Commit 0ed2592

Browse files
authored
Fix compatibility with Blue Ocean plugin (#807)
Problem was introduced in #796. Was mentioned in comment #796 (comment)
1 parent b8fa891 commit 0ed2592

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/main/java/com/cloudbees/jenkins/plugins/bitbucket/BitbucketSCMSourceBuilder.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,25 @@ public BitbucketSCMSourceBuilder(@CheckForNull String id, @NonNull String server
8080
this.repoOwner = repoOwner;
8181
}
8282

83+
/**
84+
* Backward compatible constructor.
85+
*
86+
* @deprecated Added only for backward compatibility with BitbucketPipelineCreateRequest from
87+
* <a href="https://github.com/jenkinsci/blueocean-plugin">Blue Ocean</a>. Will be removed soon.
88+
*
89+
* @param id the {@link BitbucketSCMSource#getId()}
90+
* @param serverUrl the {@link BitbucketSCMSource#getServerUrl()}
91+
* @param credentialsId the credentials id.
92+
* @param repoOwner the repository owner.
93+
* @param repoName the project name.
94+
*/
95+
@Deprecated
96+
public BitbucketSCMSourceBuilder(@CheckForNull String id, @NonNull String serverUrl,
97+
@CheckForNull String credentialsId, @NonNull String repoOwner,
98+
@NonNull String repoName) {
99+
this(id, serverUrl, credentialsId, repoOwner, repoName, null);
100+
}
101+
83102
/**
84103
* The id of the {@link BitbucketSCMSource} that is being built.
85104
*

0 commit comments

Comments
 (0)