moved tagging before creating release notes (#88)
Co-authored-by: Bulat Yusupov <byusupov@provectus.com>
This commit is contained in:
parent
d96ec48cc3
commit
ed08f278f9
4 changed files with 5 additions and 5 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue