diff --git a/Jenkinsfile b/Jenkinsfile
index 1e32c4eb36..971c052978 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -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"
}
diff --git a/kafka-ui-api/pom.xml b/kafka-ui-api/pom.xml
index f8a20e85e2..c2d037a772 100644
--- a/kafka-ui-api/pom.xml
+++ b/kafka-ui-api/pom.xml
@@ -5,7 +5,7 @@
kafka-ui
com.provectus
- 0.0.2-SNAPSHOT
+ 0.0.1-SNAPSHOT
4.0.0
diff --git a/kafka-ui-contract/pom.xml b/kafka-ui-contract/pom.xml
index 1969c2550e..927a9681bd 100644
--- a/kafka-ui-contract/pom.xml
+++ b/kafka-ui-contract/pom.xml
@@ -5,7 +5,7 @@
kafka-ui
com.provectus
- 0.0.2-SNAPSHOT
+ 0.0.1-SNAPSHOT
4.0.0
diff --git a/pom.xml b/pom.xml
index ea0fa880ff..67f8d113cd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -49,7 +49,7 @@
com.provectus
kafka-ui
- 0.0.2-SNAPSHOT
+ 0.0.1-SNAPSHOT
kafka-ui
Kafka metrics for UI panel