From 7afabcedded68e3302ae1189f68f89a065216050 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20Gourv=C3=A9nec?= Date: Thu, 27 Apr 2023 14:45:19 +0200 Subject: [PATCH] feat(debian packaging): update pipeline --- pipelines/debian-packaging.jenkinsfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 +}