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 +}