jenkinsci / build-name-setter-plugin

Build Name Setter Plugin for Jenkins CI
https://plugins.jenkins.io/build-name-setter/
MIT License
34 stars 51 forks source link

Programmatic build lookup by buildName #83

Closed decoursin closed 1 year ago

decoursin commented 1 year ago

What feature do you want to see added?

It would be nice if their was some programmatic link between the build number and the buildName as set by the plugin.

Of course, the buildName is initially set to the build number. But with this plugin, the buildName can be changed during the pipeline script.

I would like to be able to programmatically find the build for use with the Jenkins CLI (or Jenkins HTTP API) by the buildName, not by the build number. If there was some connection or link between the two - for example, if I could look up the build number by the buildName, that would suffice.

Unfortunately, however, that's currently not possible. Do you think it's possible? How much work do you think it would take?

Thank you.

Upstream changes

No response

damianszczepanik commented 1 year ago

build number is a number which is immutable by design - you can play with the name but not with the number

decoursin commented 1 year ago

Ok, but it should still be theoretically possible to somehow look up a build by a modifiable value, in this case the name.