Skip to content

Commit 1263a4d

Browse files
Ildar AsmandiyarovIldar Asmandiyarov
authored andcommitted
removed redundand
1 parent e96106d commit 1263a4d

2 files changed

Lines changed: 0 additions & 42 deletions

File tree

src/main/java/org/jenkinsci/plugins/stashNotifier/StashNotifier.java

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -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);

src/main/resources/org/jenkinsci/plugins/stashNotifier/StashNotifier/config.jelly

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,5 @@
3434
<f:entry title="Consider UNSTABLE builds as SUCCESS notification" field="considerUnstableAsSuccess">
3535
<f:checkbox />
3636
</f:entry>
37-
<f:entry title="Bitbucket Project Key (auto-detected from Git URL if empty)" field="bitbucketProjectKey">
38-
<f:textbox />
39-
</f:entry>
40-
<f:entry title="Repository Slug (auto-detected from Git URL if empty)" field="repoSlug">
41-
<f:textbox />
42-
</f:entry>
4337
</f:advanced>
4438
</j:jelly>

0 commit comments

Comments
 (0)