diff --git a/pipelines/debian-packaging.jenkinsfile b/pipelines/debian-packaging.jenkinsfile index 5762e31..4a751f9 100644 --- a/pipelines/debian-packaging.jenkinsfile +++ b/pipelines/debian-packaging.jenkinsfile @@ -3,7 +3,7 @@ pipeline { agent { - label 'common' + label 'docker' } environment { @@ -20,6 +20,7 @@ pipeline { stage("Prepare build environment") { when { anyOf { + triggeredBy cause: "UserIdCause", detail: "wpetit" triggeredBy 'TimerTrigger' } } @@ -42,7 +43,7 @@ pipeline { checkout scm: [ $class: 'GitSCM', - userRemoteConfigs: [[url: env.repository_url, credentialsId: 'jenkins-forge-ssh']], + userRemoteConfigs: [[url: env.repository_url, credentialsId: 'jenkins-ssh-mse']], branches: [[name: env.ref]], extensions: [ [$class: 'RelativeTargetDirectory', relativeTargetDir: env.projectDir ], @@ -180,6 +181,7 @@ pipeline { post { always { sh "rm -rf '${env.projectDir}'" + cleanWs() } } } @@ -223,4 +225,4 @@ def waitForPackages(String tagRef, buildResults) { ]) } } -} \ No newline at end of file +}