You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by GitBox <gi...@apache.org> on 2022/11/09 06:42:00 UTC

[GitHub] [incubator-devlake] warren830 commented on a diff in pull request #3700: fix(jenkins): Use job_path and job_name together to collect data

warren830 commented on code in PR #3700:
URL: https://github.com/apache/incubator-devlake/pull/3700#discussion_r1017485585


##########
plugins/jenkins/tasks/build_cicd_convertor.go:
##########
@@ -102,7 +107,7 @@ func ConvertBuildsToCICD(taskCtx core.SubTaskContext) (err errors.Error) {
 					Id: buildIdGen.Generate(jenkinsBuild.ConnectionId,
 						jenkinsBuild.FullDisplayName),
 				},
-				Name:         jenkinsBuild.JobName,
+				Name:         fmt.Sprintf(`%s%s`, jenkinsBuild.JobPath, jenkinsBuild.JobName),

Review Comment:
   To reviewer: I'm not quite sure if we should do this concat. Maybe we can use jobName directly as we will have cicd_scope_id to bind this pipeline to the right cicd_scope(jenkins job)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org