[JIRA] (JENKINS-40129) Extend GitChangeSet to get the repository name

22 views
Skip to first unread message

arnetempelhof@gmail.com (JIRA)

unread,
Nov 30, 2016, 1:33:02 PM11/30/16
to jenkinsc...@googlegroups.com
Arne Tempelhof created an issue
 
Jenkins / Improvement JENKINS-40129
Extend GitChangeSet to get the repository name
Issue Type: Improvement Improvement
Assignee: Unassigned
Components: workflow-cps-global-lib-plugin
Created: 2016/Nov/30 6:32 PM
Labels: pipeline changelog
Priority: Trivial Trivial
Reporter: Arne Tempelhof

By using a global shared library for Pipeline jobs, rawBuild.changeSets on the current build will contain the changes of the global shared library and the repository that is used for building. To better distinguish between theses to sources, it would be great to have a variable to obtain the repository.

The GitChangeSet class does not provide any possibility to get repository information about the commit.

    currentBuild.rawBuild.changeSets.collect { cs ->
        cs.collect { entry ->
            "* ${entry.author.fullName}: ${entry.msg}"
        }.join("\n")
    }.join("\n")
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

phil.mcardle@cloudgine.com (JIRA)

unread,
Dec 20, 2016, 11:46:01 AM12/20/16
to jenkinsc...@googlegroups.com
Phil McArdle commented on Improvement JENKINS-40129
 
Re: Extend GitChangeSet to get the repository name

This would be a boon for us too. I don't mind having the changes, but I'd like to be able to filter them.

jglick@cloudbees.com (JIRA)

unread,
Feb 10, 2017, 3:59:01 PM2/10/17
to jenkinsc...@googlegroups.com
Jesse Glick updated an issue
 

currentBuild.rawBuild.changeSets is deprecated; use currentBuild.changeSets.

Probably there should be something in the form of a map, keyed by SCM.getKey().

Change By: Jesse Glick
Component/s: workflow-job-plugin
Component/s: workflow-cps-global-lib-plugin
Labels: changelog pipeline

andrew.bayer@gmail.com (JIRA)

unread,
Feb 23, 2018, 4:44:02 PM2/23/18
to jenkinsc...@googlegroups.com
Andrew Bayer updated an issue
Change By: Andrew Bayer
Component/s: git-plugin
Component/s: workflow-job-plugin
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

jonsson.hanseric@gmail.com (JIRA)

unread,
Apr 21, 2020, 2:32:08 AM4/21/20
to jenkinsc...@googlegroups.com
Hans-Eric Jönsson commented on Improvement JENKINS-40129
 
Re: Extend GitChangeSet to get the repository name

This feature would be really appreciated as we would like to trigger certain actions when a specific file is changed, but since we are also using a shared-pipeline, things become a bit wonky to figure out if the change in question is in the shared-pipeline or in the repository in question, **because the file-name exists in both repos. 

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

jonsson.hanseric@gmail.com (JIRA)

unread,
Apr 21, 2020, 2:32:09 AM4/21/20
to jenkinsc...@googlegroups.com
Hans-Eric Jönsson edited a comment on Improvement JENKINS-40129
This feature would be really appreciated as we would like to trigger certain actions when a specific file is changed, but since we are also using a shared-pipeline, things become a bit wonky to figure out if the change in question is in the shared-pipeline or in the repository in question,  ** because the file-name exists in both repos. 
Reply all
Reply to author
Forward
0 new messages