read/set variables inside .gitlab-ci.yml reading the groupId artifactId from pom

by Angel Lopez   Last Updated July 12, 2019 14:26 PM - source

Inside .gitlab-ci.yml we define a variable (which is just the artifactId name for the porject) ARTIFACT_ID: myMicroservice-1

This variable ARTIFACT_ID is sent to a general microservice which has all the scripts to publish/deploy docker, etc.

How can I read this variable direct from POM file?

pom: myMicroservice-1

.gitlab-ci.yml: variables: SKIP_UNIT_TESTS_FLAG: "true" ARTIFACT_ID: myMicroserverName IS_OSL: "true" KUBERNETES_NAMESPACE: test

Tags : maven gitlab-ci


Related Questions



Code coverage report using gitlab-ci.yml file

Updated January 01, 2018 14:26 PM


GitLab-CI get pom version in pipeline

Updated September 09, 2018 05:26 AM

Failure with using License Finder on Gitlab CI

Updated June 20, 2019 08:26 AM