I am trying to set-up an pipline for building and testing our projects. A have set up to file Variables on group level to use inside the pipeline Variables for mvn settings and certificate
The Problem is, that the mvn_settings file is resolved as text and not as path. So my build fails.
$ mvn $MAVEN_CLI_OPTS compile
Unable to parse command line options: Unrecognized option: --><!--
If I "echo" $mvn_settings I get the path.
Also when im hard coding the path the pipeline is working
My pipline:
variables:
...
MAVEN_CLI_OPTS: "--batch-mode -s '$mvn_settings'"
...
before_script:
- keytool -importcert -file "$db_trust" -keystore $JAVA_HOME/jre/lib/security/cacerts -storepass changeit -trustcacerts -noprompt
generate:
stage: generate
script:
- mvn $MAVEN_CLI_OPTS compile
artifacts:
paths:
- target/
expire_in: 3 days
...
Is there any way to determine when the pipeline is using the content and when the path?