I have a credential named 'POSTGRES_PASSWORD' that has a value o 'test'.
I also have a job that is junit '/home/jap/.local/share/docker/volumes/jenkins_home/_data/workspace/vlep-pipeline_main/test-result/*.xml' and this job returns:
Warning: A secret was passed to "withEnv" using Groovy String interpolation, which is insecure.
Affected argument(s) used the following variable(s): [POSTGRES_PASSWORD]
See https://jenkins.io/redirect/groovy-string-interpolation for details.
Archive JUnit-formatted test results -- /home/jap/.local/share/docker/volumes/jenkins_home/_data/workspace/vlep-pipeline_main/${POSTGRES_PASSWORD}-result/*.xml (self time 9ms)
I tried using double quotes instead, but I still get the error. What am I doing wrong?