Skip to content

Commit a88fc10

Browse files
author
MerkushevKirill
committed
change error to warn on reregister btn
1 parent 15b5e8b commit a88fc10

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/cloudbees/jenkins/GitHubPushTrigger.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,10 @@ public FormValidation doCheckHookUrl(@QueryParameter String value) {
325325

326326
}
327327

328+
@SuppressWarnings("unused")
328329
public FormValidation doReRegister() {
329330
if (!manageHook) {
330-
return FormValidation.error("Works only when Jenkins manages hooks");
331+
return FormValidation.warning("Works only when Jenkins manages hooks");
331332
}
332333

333334
List<GitHubPushTrigger> registered = from(getJenkinsInstance().getAllItems(AbstractProject.class))

src/main/java/org/jenkinsci/plugins/github/util/JobInfoHelpers.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public Collection<GitHubRepositoryName> apply(AbstractProject job) {
6363
};
6464
}
6565

66-
6766
/**
6867
* If any of event subscriber interested in hook for job, then return true
6968
* By default, push hook subscriber is interested in job with gh-push-trigger
@@ -78,5 +77,5 @@ public boolean apply(AbstractProject job) {
7877
}
7978
};
8079
}
81-
8280
}
81+

0 commit comments

Comments
 (0)