stashnotifier-plugin icon indicating copy to clipboard operation
stashnotifier-plugin copied to clipboard

Allow overwriting global `includeBuildNumberInKey` configuration from individual Pipeline

Open denniseffing opened this issue 1 year ago • 0 comments

What feature do you want to see added?

Users can currently configure whether or not the build number should be included in the build key by setting includeBuildNumberInKey to false. This can be configured globally for the entire Jenkins instance or locally when calling the notifyBitbucket function in the pipeline.

If includeBuildNumberInKey is set globally, it can not be overwritten when calling notifyBitbucket in the pipeline. The parameter is basically ignored, as can be seen when looking at the following code:

https://github.com/jenkinsci/stashnotifier-plugin/blob/release/1.x/src/main/java/org/jenkinsci/plugins/stashNotifier/StashNotifier.java#L1053-L1056

It should be allowed to overwrite this setting from an individual pipeline.

Upstream changes

No response

Are you interested in contributing this feature?

If this is considered desirable, I can work on it.

denniseffing avatar Oct 15 '24 11:10 denniseffing