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

The build name is not set on a certain build failure #57

Open jansvajcr opened 4 years ago

jansvajcr commented 4 years ago

These are my recent builds:

Výstřižek

The last one failed because of some git fetch error. Logically thinking, the build name could have been set because I only wanted it to be a timestamp value (yyyy-MM-dd) which was known by the time of build failure.

Is it technically possible to make this working?

damianszczepanik commented 4 years ago

I think this kind of error (I was able to reproduce it) is happening before the build name is set so that might be hard. Probably major refactor would be needed.

paulvi commented 3 years ago

@jansvajcr Was the pre-build action configured (not post action)? Because for post-build action may be skipped if build has failed.

jansvajcr commented 2 years ago

@jansvajcr Was the pre-build action configured (not post action)? Because for post-build action may be skipped if build has failed.

No, I set it via the Set Build Name option in the Build Environment job configuration section.