Skip to content

Commit

Permalink
fix stage condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Luncher91 committed Apr 20, 2024
1 parent d30bf17 commit 3a6b8ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ pipeline {

stage('Publish release') {
when {
tag "v*"
expression { env.GITHUB_TAG_NAME && env.GITHUB_TAG_NAME.toString().startsWith("v") }
}
agent {
docker {
Expand All @@ -120,7 +120,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=$(git tag --contains)'
sh 'export TAG_NAME=$GITHUB_TAG_NAME'
sh 'export VERSION_NAME=${TAG_NAME:1}'

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

0 comments on commit 3a6b8ab

Please sign in to comment.