Skip to content

Commit ed08f27

Browse files
usbulatBulat Yusupov
andauthored
moved tagging before creating release notes (#88)
Co-authored-by: Bulat Yusupov <byusupov@provectus.com>
1 parent d96ec48 commit ed08f27

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,14 @@ spec:
7676
}
7777
}
7878
}
79-
stage('Tag release branch') {
79+
stage('Get version from pom.xml') {
8080
when {
8181
expression { return env.GIT_BRANCH == 'origin/master'; }
8282
}
8383
steps {
8484
script {
8585
pom = readMavenPom file: 'pom.xml'
8686
VERSION = pom.version
87-
sh "git tag -f v$VERSION"
8887
}
8988
}
9089
}
@@ -136,6 +135,7 @@ spec:
136135
script {
137136
withCredentials([usernamePassword(credentialsId: 'github-jenkins-internal-provectus', passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USER')]) {
138137
sh "bash -x release_json.sh v$VERSION"
138+
sh "git tag -f v$VERSION"
139139
sh "git push -f --tags https://$GIT_USER:$GIT_PASSWORD@github.com/provectus/kafka-ui.git"
140140
sh "curl -XPOST -u $GIT_USER:$GIT_PASSWORD --data @/tmp/release.json https://api.github.com/repos/provectus/kafka-ui/releases"
141141
}

kafka-ui-api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>kafka-ui</artifactId>
77
<groupId>com.provectus</groupId>
8-
<version>0.0.2-SNAPSHOT</version>
8+
<version>0.0.1-SNAPSHOT</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

kafka-ui-contract/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>kafka-ui</artifactId>
77
<groupId>com.provectus</groupId>
8-
<version>0.0.2-SNAPSHOT</version>
8+
<version>0.0.1-SNAPSHOT</version>
99
</parent>
1010

1111
<modelVersion>4.0.0</modelVersion>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
<groupId>com.provectus</groupId>
5151
<artifactId>kafka-ui</artifactId>
52-
<version>0.0.2-SNAPSHOT</version>
52+
<version>0.0.1-SNAPSHOT</version>
5353
<name>kafka-ui</name>
5454
<description>Kafka metrics for UI panel</description>
5555
</project>

0 commit comments

Comments
 (0)