From 6156d45bbc06dfbcca1d404112abaf4bfe461872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20Erik=20St=C3=B8wer?= Date: Tue, 17 Sep 2024 12:31:55 +0200 Subject: [PATCH] Use version from pom --- .circleci/config.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0400aa2f..68f3674c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,10 +16,11 @@ aliases: - &tag-git-version name: Tag git commit with build version and push to github command: | + VERSION=$(mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive exec:exec) git config --global user.email "circleci@entur.no" git config --global user.name "circleci" - git tag v0.0.1-$CIRCLE_BUILD_NUM - git push origin v0.0.1-$CIRCLE_BUILD_NUM + git tag v$VERSION-$CIRCLE_BUILD_NUM + git push origin v$VERSION-$CIRCLE_BUILD_NUM - &sonar-scan name: Sonar scan command: |