浏览代码

moved tagging before creating release notes (#88)

Co-authored-by: Bulat Yusupov <byusupov@provectus.com>
Bulat Yusupov 4 年之前
父节点
当前提交
ed08f278f9
共有 4 个文件被更改,包括 5 次插入5 次删除
  1. 2 2
      Jenkinsfile
  2. 1 1
      kafka-ui-api/pom.xml
  3. 1 1
      kafka-ui-contract/pom.xml
  4. 1 1
      pom.xml

+ 2 - 2
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"
                     }

+ 1 - 1
kafka-ui-api/pom.xml

@@ -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>
 

+ 1 - 1
kafka-ui-contract/pom.xml

@@ -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>

+ 1 - 1
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>