jenkinsci / gogs-webhook-plugin

Jenkins Gogs Webhook
https://plugins.jenkins.io/gogs-webhook/
MIT License
79 stars 42 forks source link

Branch name in webhook url doesn't work #79

Closed RajuKottedi closed 1 year ago

RajuKottedi commented 1 year ago

Jenkins and plugins versions report

Environment ```text Jenkins: 2.401.3 Gogs: 0.13.0 gogs-webhook-plugin version: 1.0.15 OS: Linux - 5.10.103-v8+ Java: 11.0.18 - Debian (OpenJDK 64-Bit Server VM) ```

What Operating System are you using (both controller, and any agents involved in the problem)?

Linux (Debian 11)

Reproduction steps

  1. Open repository settings and select Webhooks
  2. Enter Payload URL http://192.168.0.197:8081/gogs-webhook/?job=UAT**&branch=dev**
  3. Change the Branch name in the query parameter http://192.168.0.197:8081/gogs-webhook/?job=UAT**&branch=prod**

Expected Results

The branch name in the payload should be the same as the query parameter(branch=prod) in the Payload Url.

"ref": "refs/heads/prod"

Actual Results

The branch name is always the same as the base branch (dev) in the payload even changing the query parameter in the Payload Url.

"ref": "refs/heads/dev"

Anything else?

No response

RajuKottedi commented 1 year ago

Figured it out. It was not an issue. I am new to Jenkins. Thanks for the plugin.