Move commonly used methods out to Common_scripts
This commit is contained in:
parent
4c6372bb8c
commit
a1448ac850
1 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ def registerConfigurationInfo(String configurationName, String configurationURL,
|
|||
}
|
||||
|
||||
def registerPipelineScriptConfiguration() {
|
||||
registerConfigurationInfo('pipeline script', '-', '-', getGitInfo("${WORKSPACE}"))
|
||||
registerConfigurationInfo('pipeline script', '-', '-', gh.getGitInfo("${WORKSPACE}"))
|
||||
}
|
||||
|
||||
def saveConfigurationInVersionInfo() {
|
||||
|
|
@ -30,7 +30,7 @@ String getFormattedConfiguration() {
|
|||
|
||||
def gitCheckoutAndRegister(String tool, String gitURL, String revision, String targetDir, String repoRoot = "", int cloneDepth = 1, boolean shallowClone = true) {
|
||||
gh.gitCheckout(gitURL, revision, targetDir, repoRoot, cloneDepth, shallowClone)
|
||||
registerConfigurationInfo(tool, gitURL, revision, getGitInfo(targetDir))
|
||||
registerConfigurationInfo(tool, gitURL, revision, gh.getGitInfo(targetDir))
|
||||
}
|
||||
|
||||
return this
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue