Skip to content

Commit

Permalink
Fix compatibility with Blue Ocean plugin
Browse files Browse the repository at this point in the history
Problem was introduced in jenkinsci#796.
Was mentioned in comment jenkinsci#796 (comment)
  • Loading branch information
andrey-fomin committed Feb 13, 2024
1 parent b8fa891 commit 5142985
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);
}

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

0 comments on commit 5142985

Please sign in to comment.