Using the Jenkins Git plugin is it possible to get all the repositories
touched by a commit? When using the Jenkins API to get the information on a
build, it has a list of commits (in changeSet) and each item has a commit
hash, the files touched and other information, but it doesn't say what repo
it was in. I was thinking about getting all the repo from the file path,
but it is a path relative the repository to begin, so that's no help. Is
there a way to get the git plugin to include what repository a commit was
in when querying for the build's information using the Jenkins API?
Here's a same changeSet item from the API's response. Notice it doesn't
indicate the repository anywhere:
- {
- affectedPaths:
[
- "path/to/some/file.php"
],
- commitId: "8b0b52ead67410c3afa6db137bcd079a4e35b6b6",
- timestamp: 1423683000,
- author:
{
- absoluteUrl: "<
<http://jenkins-test.money-media.com:8080/user/wzhao>jenkins url>",
- fullName: "<Author name>"
},
- comment: "commit comment",
- date: "1970-01-17T06:28:03-0500 -0500",
- id: "8b0b52ead67410c3afa6db137bcd079a4e35b6b6",
- msg: "some text here",
- paths:
[
-
{
- editType: "edit",
- file: "path/to/some/file.php"
}
]
},
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/16302672-71b2-425f-9a2d-73a4d93f0e5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.