Skip to content

Commit

Permalink
another jenkins release stage test
Browse files Browse the repository at this point in the history
  • Loading branch information
Luncher91 committed Apr 20, 2024
1 parent 3a6b8ab commit f5c4477
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pipeline {
}
}
steps {
sh 'set'
// Run Maven on a Unix agent.
sh 'mvn -Dmaven.test.failure.ignore=true clean package -DversionHash=$(git rev-parse --short HEAD)'
sh "cp target/a2lparser-*-jar-with-dependencies.jar a2lparser.jar"
Expand Down Expand Up @@ -106,7 +107,7 @@ pipeline {

stage('Publish release') {
when {
expression { env.GITHUB_TAG_NAME && env.GITHUB_TAG_NAME.toString().startsWith("v") }
expression { env.BUILD_TAG && env.BUILD_TAG.toString().startsWith("v") }
}
agent {
docker {
Expand All @@ -120,7 +121,7 @@ pipeline {
sh 'go install github.com/github-release/github-release@latest'
sh 'export GITHUB_ORGANIZATION=Luncher91'
sh 'export GITHUB_REPO=A2LParser'
sh 'export TAG_NAME=$GITHUB_TAG_NAME'
sh 'export TAG_NAME=$BUILD_TAG'
sh 'export VERSION_NAME=${TAG_NAME:1}'

sh 'echo "Deleting release from github before creating new one"'
Expand Down

0 comments on commit f5c4477

Please sign in to comment.