@@ -173,18 +173,6 @@ public class StashNotifier extends Notifier implements SimpleBuildStep {
173173 */
174174 private boolean considerUnstableAsSuccess ;
175175
176- /**
177- * Bitbucket project key for the repo-scoped builds API.
178- * If null, auto-detected from Git remote URL.
179- */
180- private String bitbucketProjectKey ;
181-
182- /**
183- * Bitbucket repository slug for the repo-scoped builds API.
184- * If null, auto-detected from Git remote URL.
185- */
186- private String repoSlug ;
187-
188176 private JenkinsLocationConfiguration globalConfig ;
189177
190178 /**
@@ -353,24 +341,6 @@ public void setConsiderUnstableAsSuccess(boolean considerUnstableAsSuccess) {
353341 this .considerUnstableAsSuccess = considerUnstableAsSuccess ;
354342 }
355343
356- public String getBitbucketProjectKey () {
357- return bitbucketProjectKey ;
358- }
359-
360- @ DataBoundSetter
361- public void setBitbucketProjectKey (String bitbucketProjectKey ) {
362- this .bitbucketProjectKey = bitbucketProjectKey ;
363- }
364-
365- public String getRepoSlug () {
366- return repoSlug ;
367- }
368-
369- @ DataBoundSetter
370- public void setRepoSlug (String repoSlug ) {
371- this .repoSlug = repoSlug ;
372- }
373-
374344 @ Inject
375345 void setHttpNotifierSelector (HttpNotifierSelector httpNotifierSelector ) {
376346 this .httpNotifierSelector = httpNotifierSelector ;
@@ -1216,12 +1186,6 @@ static String[] parseBitbucketRemoteUrl(String remoteUrl) {
12161186 * @return a two-element array [projectKey, repoSlug], or null if not resolvable
12171187 */
12181188 private String [] resolveBitbucketRepo (Run <?, ?> run , PrintStream logger ) {
1219- // Use manually configured values if both are set
1220- if (StringUtils .isNotBlank (bitbucketProjectKey ) && StringUtils .isNotBlank (repoSlug )) {
1221- return new String []{bitbucketProjectKey .trim (), repoSlug .trim ()};
1222- }
1223-
1224- // Auto-detect from Git remote URL
12251189 for (BuildData buildData : run .getActions (BuildData .class )) {
12261190 for (String remoteUrl : buildData .getRemoteUrls ()) {
12271191 String [] parsed = parseBitbucketRemoteUrl (remoteUrl );
0 commit comments