maj clé ssh sonarqube
This commit is contained in:
parent
7afabcedde
commit
497a315844
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue