moved tagging before creating release notes (#88)

Co-authored-by: Bulat Yusupov <byusupov@provectus.com>
This commit is contained in:
Bulat Yusupov 2020-07-31 15:37:01 +03:00 committed by GitHub
parent d96ec48cc3
commit ed08f278f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

4
Jenkinsfile vendored
View file

@ -76,7 +76,7 @@ spec:
}
}
}
stage('Tag release branch') {
stage('Get version from pom.xml') {
when {
expression { return env.GIT_BRANCH == 'origin/master'; }
}
@ -84,7 +84,6 @@ spec:
script {
pom = readMavenPom file: 'pom.xml'
VERSION = pom.version
sh "git tag -f v$VERSION"
}
}
}
@ -136,6 +135,7 @@ spec:
script {
withCredentials([usernamePassword(credentialsId: 'github-jenkins-internal-provectus', passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USER')]) {
sh "bash -x release_json.sh v$VERSION"
sh "git tag -f v$VERSION"
sh "git push -f --tags https://$GIT_USER:$GIT_PASSWORD@github.com/provectus/kafka-ui.git"
sh "curl -XPOST -u $GIT_USER:$GIT_PASSWORD --data @/tmp/release.json https://api.github.com/repos/provectus/kafka-ui/releases"
}

View file

@ -5,7 +5,7 @@
<parent>
<artifactId>kafka-ui</artifactId>
<groupId>com.provectus</groupId>
<version>0.0.2-SNAPSHOT</version>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View file

@ -5,7 +5,7 @@
<parent>
<artifactId>kafka-ui</artifactId>
<groupId>com.provectus</groupId>
<version>0.0.2-SNAPSHOT</version>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View file

@ -49,7 +49,7 @@
<groupId>com.provectus</groupId>
<artifactId>kafka-ui</artifactId>
<version>0.0.2-SNAPSHOT</version>
<version>0.0.1-SNAPSHOT</version>
<name>kafka-ui</name>
<description>Kafka metrics for UI panel</description>
</project>