Skip to content

Commit 358149f

Browse files
authored
Merge pull request #395 from daniel-beck/fix-legacy-checkUrl
Fix legacy `checkUrl` in form validation
2 parents 50adabf + c5df00f commit 358149f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

  • github-pullrequest-plugin/src/main/resources
    • com/github/kostyasha/github/integration/branch/GitHubBranchTrigger
    • org/jenkinsci/plugins/github/pullrequest/GitHubPRTrigger

github-pullrequest-plugin/src/main/resources/com/github/kostyasha/github/integration/branch/GitHubBranchTrigger/config.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ f.block {
2222

2323
f.entry(title: _("Crontab line"), field: "spec", help: "/descriptor/${TimerTrigger.getClass().getName()}/help/spec") {
2424
f.textbox(default: "H/5 * * * *",
25-
checkUrl: "'descriptorByName/hudson.triggers.TimerTrigger/checkSpec?value=' + encodeURIComponent(this.value)")
25+
checkUrl: "descriptorByName/hudson.triggers.TimerTrigger/checkSpec",
26+
checkDependsOn: "")
2627
}
2728

2829
f.entry(title: "Set status before build", field: "preStatus") {

github-pullrequest-plugin/src/main/resources/org/jenkinsci/plugins/github/pullrequest/GitHubPRTrigger/config.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ f.block {
2222

2323
f.entry(title: _("Crontab line"), field: "spec", help: "/descriptor/${TimerTrigger.getClass().getName()}/help/spec") {
2424
f.textbox(default: "H/5 * * * *",
25-
checkUrl: "'descriptorByName/hudson.triggers.TimerTrigger/checkSpec?value=' + encodeURIComponent(this.value)")
25+
checkUrl: "descriptorByName/hudson.triggers.TimerTrigger/checkSpec",
26+
checkDependsOn: "")
2627
}
2728

2829
f.entry(title: "Set status before build", field: "preStatus") {

0 commit comments

Comments
 (0)