提交 9278c510 编写于 作者: S Skylot

build: use commits count in gitlab ci version

上级 ca9dc5f9
......@@ -13,7 +13,7 @@ stages:
build:
stage: build
script:
- sed -i " 1 s/.*/&-b${CI_JOB_ID}/" version
- sed -i " 1 s/.*/&-b$(git rev-list --count HEAD)-$(git rev-parse --short HEAD)/" version
- cat version
- ./gradlew -g /cache/.gradle clean build jacocoTestReport
- ./gradlew -g /cache/.gradle clean sonarqube -Dsonar.host.url=$SONAR_HOST -Dsonar.organization=$SONAR_ORG -Dsonar.login=$SONAR_TOKEN
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册