-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins ver. 2.107.1
Parameterized Trigger plugin 2.35.2
I set up job A which has a single Trigger/call builds on other projects build step which can be seen in the attached screenshot. It's set For every property file, invoke one build of job B. The File Pattern is /var/lib/jenkins/cases/*
Job B ("case-runner" in the screenshot) is parameterized, it has a DATASET parameter and a single build step Execute shell "env". It is started as expected, but the DATASET parameter is not passed through even though it's specified in the property file.
jenkins@instance-eval-jenkins:~$ ls -l /var/lib/jenkins/cases/
total 4
rw-rr- 1 jenkins jenkins 12 Apr 19 13:08 a
jenkins@instance-eval-jenkins:~$ cat /var/lib/jenkins/cases/a
DATASET=svo
The DATASET parameter should be passed through according to the documentation: "This ParameterFactory generates parameters based on the contents of the files found."
DATASET is passed fine if I specify it in a list of Predefined parameters, but not when it's in the property file, so it seems to be a problem with how the job is triggered. Both jobs run on the master Jenkins node. I also tried with "DATASET = svo" in the property file but still the same.
It turns out it was a problem with how I specified the File Pattern. I noticed this in the Jenkins's system log file:
I was able to use the "cases/*" File Pattern only after I made the "cases" folder available in the job's workspace directory:
ln -s /var/lib/jenkins/cases/ /var/lib/jenkins/workspace/MY-JOB-NAME/
It would be good if the plugin does not fail silently. I would consider the issue fixed if the help paragraph for the File Path explains that absolute paths are not valid values: