Due to space limitation I have assigned a
custom Build Record Root Directory for my Jenkins server.
Now I need to create a data.path property assigned to the value of the archive folder of a particular JOB_NAME.
Before I assigned the custom Build Record Root Directory, I used to construct this property from the following components and environment variables:
data.path=JENKINS_HOME/JOB_NAME/builds/BUILD_ID/archive
This generated the default Jenkins data.path for build archives
After the change to the Build Record Root Directory, I do not seem to find any environment variable that exposes the custom Build Record Root Directory.
Is there a way to get the Build Record Root Directory value during the build execution, so I can construct the data.path property correctly?
Thanks and best regards
Ioannis