Hi,
Could anyone be so kind and give me a hint on how we can use pipeline variables within the Integration test java class?
I want to create an instance of the CQClient class with credentials and I certainly don't want to hardcode those values. So, I wanted to take advantage of pipeline variables and define them in the it.tests/pom.xml like:
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<it.domain.username>${env.IT_USERNAME}</it.domain.username>
</properties>
and then as a systemPropertyVariable in the maven-failsafe-plugin configuration for local profile
<it.username>${it.domain.username}</it.username>
Unfortunately, I am unable to get it's value with System.getProperty("it.username");
Thanks in advance,
Rustam.