#26 Try to fix bad sub
This commit is contained in:
13
build/Jenkinsfile
vendored
13
build/Jenkinsfile
vendored
@@ -1,14 +1,15 @@
|
||||
pipeline {
|
||||
agent { label 'docker' }
|
||||
|
||||
parameters {
|
||||
booleanParam(name: 'DRY_RUN', defaultValue: true, description: 'If checked, no code will be pushed to Gitea, Reposilite, or Docker.')
|
||||
}
|
||||
|
||||
environment {
|
||||
REPO_URL = credentials('reposilite-url')
|
||||
DOCKER_REGISTRY = credentials('docker-registry-url')
|
||||
GIT_URL_CLEAN = sh(script: "echo ${GIT_URL} | sed 's|https://||'", returnStdout: true).trim()
|
||||
}
|
||||
|
||||
parameters {
|
||||
booleanParam(name: 'DRY_RUN', defaultValue: true, description: 'If checked, no code will be pushed to Gitea, Reposilite, or Docker.')
|
||||
IS_DRY_RUN = "${params.DRY_RUN}"
|
||||
}
|
||||
|
||||
stages {
|
||||
@@ -25,10 +26,10 @@ pipeline {
|
||||
|
||||
pkgx mvn release:prepare -B \
|
||||
-s build/settings.xml \
|
||||
-DdryRun=${DRY_RUN} \
|
||||
-DdryRun=${IS_DRY_RUN} \
|
||||
-Dreposilite.url=${REPO_URL} \
|
||||
-DtagNameFormat="v@{project.version}" \
|
||||
-Darguments="-Dtag=v${project.version} -DskipTests"
|
||||
-Darguments="-Dtag=v\\${project.version} -DskipTests"
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user