jenkinsci / jenkinsci/git-plugin
[JENKINS-15244] Gerrit Trigger - 405 Method not allowed when a build is launched manually
- Dominant language
- Java
- Stars
- 694
- Forks
- 1.1k
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 3
Description
Hello,
When I use the "trick" to add a string parameter called "GERRIT_REFSPEC" with "refs/heads/master" as default value (described here: https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger), I can't click on the "Launch a build" button.
I get this error: "Method not allowed: The requested method GET is not allowed for the URL /job/HelloWorld/build". This does not happen if the parameter is not set (even if the build fails, which is only logical).
Thank you for your help
---
Originally reported by theo_c, imported from: Gerrit Trigger - 405 Method not allowed when a build is launched manually
Raw content of original issue
Hello,
When I use the "trick" to add a string parameter called "GERRIT_REFSPEC" with "refs/heads/master" as default value (described here: https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger), I can't click on the "Launch a build" button.
I get this error: "Method not allowed: The requested method GET is not allowed for the URL /job/HelloWorld/build". This does not happen if the parameter is not set (even if the build fails, which is only logical).
Thank you for your help
environment
```
Jenkins 1.466.1 and Gerrit 2.4.2 on Ubuntu 12.04
Gerrit Trigger 2.6.0, Git Plugin 1.1.23
```
Contributor guide
Assessment
This issue has not been assessed yet.