jobs/build: added missing removing of pre clone directory
Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
eb19873605
commit
ca4b22b136
|
|
@ -11,7 +11,9 @@ def targetList
|
|||
// of a certain label (like core-os_buildagent) to have define credentials to get
|
||||
// the files. In the current case we use any agent.
|
||||
node() {
|
||||
dir("tmp-repo") {
|
||||
def repoPreCloneDir = "repo-preclone"
|
||||
|
||||
dir(repoPreCloneDir) {
|
||||
// clone the repository to get the file with the target list
|
||||
sshagent (credentials: ['admin_credentials']) {
|
||||
sh "git clone --depth 1 --branch ${env.BRANCH_NAME} ssh://git@bitbucket.gad.local:7999/nm-nsp/nwl-ci.git ."
|
||||
|
|
@ -23,6 +25,7 @@ node() {
|
|||
// load common file
|
||||
common = load "./jobs/Jenkinsfile_Common"
|
||||
}
|
||||
sh("rm -rf ${repoPreCloneDir}")
|
||||
}
|
||||
|
||||
// declarative pipeline
|
||||
|
|
|
|||
Loading…
Reference in New Issue