From 497a315844e9e654342da1c6fb95458c67954033 Mon Sep 17 00:00:00 2001 From: Matthieu Lamalle Date: Wed, 3 May 2023 15:31:18 +0200 Subject: [PATCH] =?UTF-8?q?maj=20cl=C3=A9=20ssh=20sonarqube?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pipelines/sentry.jenkinsfile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pipelines/sentry.jenkinsfile b/pipelines/sentry.jenkinsfile index f39346e..032c032 100644 --- a/pipelines/sentry.jenkinsfile +++ b/pipelines/sentry.jenkinsfile @@ -7,25 +7,25 @@ pipeline { } environment { - projectDir = "${env.project_name}_${env.BUILD_ID}" + projectDir = "${env.project_name}_${env.BUILD_ID}" } stages { stage("Clone repository") { steps { - checkout scm: + checkout scm: [ - $class: 'GitSCM', - userRemoteConfigs: [[url: env.repository_url, credentialsId: 'jenkins-forge-ssh']], + $class: 'GitSCM', + userRemoteConfigs: [[url: env.repository_url, credentialsId: 'jenkins-ssh-mse']], branches: [[name: env.ref]], extensions: [ [$class: 'RelativeTargetDirectory', relativeTargetDir: env.projectDir ], [$class: 'CloneOption', noTags: false, shallow: false, depth: 0, reference: ''], [$class: 'WipeWorkspace' ] ] - ], - changelog: false, + ], + changelog: false, poll: false } } @@ -41,14 +41,14 @@ pipeline { sh ''' SENTRY_CMD="sentry-cli --auth-token \"${SENTRY_AUTH_TOKEN}\" --url \"${SENTRY_URL}\"" PROJECT_VERSION=$(sentry-cli releases propose-version) - + $SENTRY_CMD \ releases \ --org "${sentry_org}" \ new \ -p "${sentry_project}" ${PROJECT_VERSION} - ( + ( $SENTRY_CMD \ releases \ --org "${sentry_org}" \ @@ -73,4 +73,4 @@ pipeline { cleanWs() } } -} \ No newline at end of file +}