jobs: replaced admin_credentials with nmgit_credentials for git access
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
c582eb64d2
commit
236f4b95d5
|
|
@ -10,7 +10,7 @@ def common
|
||||||
node() {
|
node() {
|
||||||
def repoPreCloneDir = "repo-preclone"
|
def repoPreCloneDir = "repo-preclone"
|
||||||
def nodeHostname = sh(returnStdout: true, script: "set +x && hostname | cut -d '_' -f1").trim()
|
def nodeHostname = sh(returnStdout: true, script: "set +x && hostname | cut -d '_' -f1").trim()
|
||||||
def cloneCredentials = ("${nodeHostname}" == "nwl") ? 'admin_credentials' : 'gitCredentials'
|
def cloneCredentials = ("${nodeHostname}" == "nwl") ? 'nmgit_credentials' : 'gitCredentials'
|
||||||
|
|
||||||
dir(repoPreCloneDir) {
|
dir(repoPreCloneDir) {
|
||||||
// clone the repository to get the file with the target list
|
// clone the repository to get the file with the target list
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ def targetList
|
||||||
node() {
|
node() {
|
||||||
def repoPreCloneDir = "repo-preclone"
|
def repoPreCloneDir = "repo-preclone"
|
||||||
def nodeHostname = sh(returnStdout: true, script: "set +x && hostname | cut -d '_' -f1").trim()
|
def nodeHostname = sh(returnStdout: true, script: "set +x && hostname | cut -d '_' -f1").trim()
|
||||||
def cloneCredentials = ("${nodeHostname}" == "nwl") ? 'admin_credentials' : 'gitCredentials'
|
def cloneCredentials = ("${nodeHostname}" == "nwl") ? 'nmgit_credentials' : 'gitCredentials'
|
||||||
|
|
||||||
dir(repoPreCloneDir) {
|
dir(repoPreCloneDir) {
|
||||||
// clone the repository to get the file with the target list
|
// clone the repository to get the file with the target list
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ def cleaningClonedRepoDir() {
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
def getGitCredentialID() {
|
def getGitCredentialID() {
|
||||||
def serverHostname = sh(returnStdout: true, script: "set +x && hostname | cut -d '_' -f1").trim()
|
def serverHostname = sh(returnStdout: true, script: "set +x && hostname | cut -d '_' -f1").trim()
|
||||||
return ("${serverHostname}" == "nwl") ? 'admin_credentials' : 'gitCredentials'
|
return ("${serverHostname}" == "nwl") ? 'nmgit_credentials' : 'gitCredentials'
|
||||||
}
|
}
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
def getNexusCredentialID() {
|
def getNexusCredentialID() {
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ pipelineJob('nwl') {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
remote {
|
remote {
|
||||||
credentials('admin_credentials')
|
credentials('nmgit_credentials')
|
||||||
url('ssh://git@bitbucket.gad.local:7999/nm-nsp/nwl-ci.git')
|
url('ssh://git@bitbucket.gad.local:7999/nm-nsp/nwl-ci.git')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -56,7 +56,7 @@ pipelineJob('nwl-target') {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
remote {
|
remote {
|
||||||
credentials('admin_credentials')
|
credentials('nmgit_credentials')
|
||||||
url('ssh://git@bitbucket.gad.local:7999/nm-nsp/nwl-ci.git')
|
url('ssh://git@bitbucket.gad.local:7999/nm-nsp/nwl-ci.git')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue