jenkinsci / jenkinsci/outbound-webhook-plugin

Use Environment Variable or Parameter Variable as part of url

Open
#20 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
13
Forks
26
PR merge metrics
No merged PRs in 30d

Description

### What feature do you want to see added?

In the webhook url, allow us to pass some variable (parameters) or environment variable like ${BUILD_NUMBER}.

![image](https://user-images.githubusercontent.com/8090574/184899245-e989013b-4d81-4897-b482-97f235910861.png)

We tried passing ${BUILD_NUMBER} in the url, and this is the output: it didn't render the build number into the actual build number.

![image](https://user-images.githubusercontent.com/8090574/184899525-0596070f-cfbd-47c0-86ab-580e64e83363.png)

### Upstream changes

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by locating where the outbound webhook URL is assembled and how Jenkins build variables are handled. Check whether BUILD_NUMBER or parameter variables are available at that entry point, then verify that a URL containing ${BUILD_NUMBER} receives the resolved value in a webhook request. Done means variable expansion works reliably in webhook URLs.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.