incubator-devlake icon indicating copy to clipboard operation
incubator-devlake copied to clipboard

[Bug] Jenkins build name populating as the job name itself instead of the actual build name

Open prateekj201 opened this issue 1 year ago • 6 comments
trafficstars

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

prateekj201 avatar Mar 01 '24 08:03 prateekj201

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 avatar Mar 01 '24 11:03 d4x1

@d4x1 A configuration to let users decide the assignment logic of the Jenkins build_name?

Startrekzky avatar Mar 04 '24 12:03 Startrekzky

@d4x1 A configuration to let users decide the assignment logic of the Jenkins build_name?

Yes.

d4x1 avatar Mar 05 '24 14:03 d4x1

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.

github-actions[bot] avatar Jun 17 '24 00:06 github-actions[bot]

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.

github-actions[bot] avatar Aug 17 '24 00:08 github-actions[bot]