incubator-devlake
incubator-devlake copied to clipboard
[Bug] Jenkins build name populating as the job name itself instead of the actual build name
Search before asking
- [X] I had searched in the issues and found no similar issues.
What happened
if using currentBuild.displayName to change the build name for any job, devlake table _tool_jenkins_stages shows build_name as the job name itself instead of the custom build name being set. Also, "{jenkins_url}/job/{JobName}/api/json" shows job name instead of custom build name which could be causing this
What do you expect to happen
build_name in _tool_jenkins_stages to be as custom build name being populated as per job configuration
How to reproduce
use currentBuild.displayName to change the build name for any job to reproduce this
Anything else
No response
Version
Apache 2.0 License v0.19.0@
Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
IMO, the best way is DevLake provides some an option with a default rule in scope config , and user can change it manually.
@Startrekzky
@d4x1 A configuration to let users decide the assignment logic of the Jenkins build_name?
@d4x1 A configuration to let users decide the assignment logic of the Jenkins build_name?
Yes.
This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.
This issue has been automatically marked as stale because it has been inactive for 60 days. It will be closed in next 7 days if no further activity occurs.