jenkinsci / jenkinsci/git-plugin

[JENKINS-15244] Gerrit Trigger - 405 Method not allowed when a build is launched manually

Open
#2,194 5 comments 0 reactions 0 assignees View on GitHub
component:gerrit-trigger-plugin component:git-plugin component:obsolete-gerrit-plugin imported-jira-issue priority:minor resolution:unresolved
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


  • status: Open
  • priority: Minor
  • component(s): gerrit-trigger-plugin, git-plugin, OBSOLETE-gerrit-plugin
  • label(s): gerrit, gitplugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-12-02

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.