mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-03-03 15:02:35 +02:00
feat (commonPipelineEnvironment) enhance the cpe map to read git head commit id (#3865)
* reading the git head commit id in cpe map Co-authored-by: anilkeshav27 <anil.keshav@sap.com> Co-authored-by: Ashly Mathew <ashly.mathew@sap.com>
This commit is contained in:
parent
5931415d9c
commit
47c63d2cc1
@ -26,6 +26,7 @@ class commonPipelineEnvironment implements Serializable {
|
||||
|
||||
//stores the gitCommitId as well as additional git information for the build during pipeline run
|
||||
String gitCommitId
|
||||
String gitHeadCommitId
|
||||
String gitCommitMessage
|
||||
String gitSshUrl
|
||||
String gitHttpsUrl
|
||||
@ -85,6 +86,7 @@ class commonPipelineEnvironment implements Serializable {
|
||||
containerProperties = [:]
|
||||
|
||||
gitCommitId = null
|
||||
gitHeadCommitId = null
|
||||
gitCommitMessage = null
|
||||
gitSshUrl = null
|
||||
gitHttpsUrl = null
|
||||
@ -200,6 +202,7 @@ class commonPipelineEnvironment implements Serializable {
|
||||
[filename: '.pipeline/commonPipelineEnvironment/github/repository', property: 'githubRepo'],
|
||||
[filename: '.pipeline/commonPipelineEnvironment/git/branch', property: 'gitBranch'],
|
||||
[filename: '.pipeline/commonPipelineEnvironment/git/commitId', property: 'gitCommitId'],
|
||||
[filename: '.pipeline/commonPipelineEnvironment/git/headCommitId', property: 'gitHeadCommitId'],
|
||||
[filename: '.pipeline/commonPipelineEnvironment/git/httpsUrl', property: 'gitHttpsUrl'],
|
||||
[filename: '.pipeline/commonPipelineEnvironment/git/ref', property: 'gitRef'],
|
||||
[filename: '.pipeline/commonPipelineEnvironment/git/commitMessage', property: 'gitCommitMessage'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user