Skip to content

Commit

Permalink
moved tagging before creating release notes (#88)
Browse files Browse the repository at this point in the history
Co-authored-by: Bulat Yusupov <[email protected]>
  • Loading branch information
usbulat and Bulat Yusupov authored Jul 31, 2020
1 parent d96ec48 commit ed08f27
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,14 @@ spec:
}
}
}
stage('Tag release branch') {
stage('Get version from pom.xml') {
when {
expression { return env.GIT_BRANCH == 'origin/master'; }
}
steps {
script {
pom = readMavenPom file: 'pom.xml'
VERSION = pom.version
sh "git tag -f v$VERSION"
}
}
}
Expand Down Expand Up @@ -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"
}
Expand Down
2 changes: 1 addition & 1 deletion kafka-ui-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion kafka-ui-contract/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit ed08f27

Please sign in to comment.