Skip to content

Commit

Permalink
Making response clearer when no jobs found #78
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Sep 11, 2018
1 parent a3b0024 commit 3d1938f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Changelog of Generic Webhook Plugin.
**Adding multibranch example with credentials**


[3048f14d3a1674a](https://github.com/jenkinsci/generic-webhook-trigger-plugin/commit/3048f14d3a1674a) Tomas Bjerre *2018-09-07 09:30:44*
[a3b0024b222eb9d](https://github.com/jenkinsci/generic-webhook-trigger-plugin/commit/a3b0024b222eb9d) Tomas Bjerre *2018-09-07 09:48:43*


## 1.44 (2018-09-06 16:48:37)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@
public class GenericWebHookRequestReceiver extends CrumbExclusion implements UnprotectedRootAction {

private static final String NO_JOBS_MSG =
"Did not find any jobs to trigger! "
+ "If the job you intend to trigger has a configured token, you need to pass it like ...trigger/invoke?token=TOKENHERE";
"Did not find any jobs with "
+ GenericTrigger.class.getSimpleName()
+ " configured! "
+ "If you are using a token, you need to pass it like ...trigger/invoke?token=TOKENHERE. "
+ "If you are not using a token, you need to authenticate like http://user:passsword@jenkins/generic-webhook... ";
private static final String URL_NAME = "generic-webhook-trigger";
private static final Logger LOGGER =
Logger.getLogger(GenericWebHookRequestReceiver.class.getName());
Expand Down

0 comments on commit 3d1938f

Please sign in to comment.