set build name according to build status

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

set build name according to build status

maple.feng.wang@hotmail.com
Hi,

I met a problem about set build name according to build status in Jenkins.

My configuration is quite simple,

- set build name "Deploying on xxx ..." in build environment
- set build name "Deploy on xxx successfully" in conditional steps(current build status, worst: success, best: success) in build section
- set build name "Deploy on xxx failed" in conditional steps(current build status, worst: failure, best: failure)

But the result is not expected:
```
[Current build status] check if current [SUCCESS] is worse or equals then [SUCCESS] and better or equals then [SUCCESS]
Run condition [Current build status] enabling perform for step [BuilderChain]
New run name is '#9 - Deploy on 192.168.13.8 successfully'
Variable with name 'BUILD_DISPLAY_NAME' already exists, current value: '#9 - Deploying on 192.168.13.8 ...', new value: '#9 - Deploy on 192.168.13.8 successfully'
[Current build status] check if current [SUCCESS] is worse or equals then [FAILURE] and better or equals then [FAILURE]
Run condition [Current build status] preventing perform for step [BuilderChain]
New run name is '#9 - Deploying on 192.168.13.8 ...'
Variable with name 'BUILD_DISPLAY_NAME' already exists, current value: '#9 - Deploy on 192.168.13.8 successfully', new value: '#9 - Deploying on 192.168.13.8 ...'
```

The plugin set the right name at build according to success result, but somehow it's renamed back, I don't know why it happen. Anyone know how to configure to achieve what I want? thanks

best regards.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b3471d5b-06da-496d-912e-d10c9c35b846o%40googlegroups.com.