maj clé ssh sonarqube
This commit is contained in:
parent
7afabcedde
commit
497a315844
@ -7,25 +7,25 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
projectDir = "${env.project_name}_${env.BUILD_ID}"
|
projectDir = "${env.project_name}_${env.BUILD_ID}"
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
|
||||||
stage("Clone repository") {
|
stage("Clone repository") {
|
||||||
steps {
|
steps {
|
||||||
checkout scm:
|
checkout scm:
|
||||||
[
|
[
|
||||||
$class: 'GitSCM',
|
$class: 'GitSCM',
|
||||||
userRemoteConfigs: [[url: env.repository_url, credentialsId: 'jenkins-forge-ssh']],
|
userRemoteConfigs: [[url: env.repository_url, credentialsId: 'jenkins-ssh-mse']],
|
||||||
branches: [[name: env.ref]],
|
branches: [[name: env.ref]],
|
||||||
extensions: [
|
extensions: [
|
||||||
[$class: 'RelativeTargetDirectory', relativeTargetDir: env.projectDir ],
|
[$class: 'RelativeTargetDirectory', relativeTargetDir: env.projectDir ],
|
||||||
[$class: 'CloneOption', noTags: false, shallow: false, depth: 0, reference: ''],
|
[$class: 'CloneOption', noTags: false, shallow: false, depth: 0, reference: ''],
|
||||||
[$class: 'WipeWorkspace' ]
|
[$class: 'WipeWorkspace' ]
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
changelog: false,
|
changelog: false,
|
||||||
poll: false
|
poll: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -41,14 +41,14 @@ pipeline {
|
|||||||
sh '''
|
sh '''
|
||||||
SENTRY_CMD="sentry-cli --auth-token \"${SENTRY_AUTH_TOKEN}\" --url \"${SENTRY_URL}\""
|
SENTRY_CMD="sentry-cli --auth-token \"${SENTRY_AUTH_TOKEN}\" --url \"${SENTRY_URL}\""
|
||||||
PROJECT_VERSION=$(sentry-cli releases propose-version)
|
PROJECT_VERSION=$(sentry-cli releases propose-version)
|
||||||
|
|
||||||
$SENTRY_CMD \
|
$SENTRY_CMD \
|
||||||
releases \
|
releases \
|
||||||
--org "${sentry_org}" \
|
--org "${sentry_org}" \
|
||||||
new \
|
new \
|
||||||
-p "${sentry_project}" ${PROJECT_VERSION}
|
-p "${sentry_project}" ${PROJECT_VERSION}
|
||||||
|
|
||||||
(
|
(
|
||||||
$SENTRY_CMD \
|
$SENTRY_CMD \
|
||||||
releases \
|
releases \
|
||||||
--org "${sentry_org}" \
|
--org "${sentry_org}" \
|
||||||
@ -73,4 +73,4 @@ pipeline {
|
|||||||
cleanWs()
|
cleanWs()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user