jenkinsci / jenkinsci/parameterized-trigger-plugin
[JENKINS-33757] Parameterized Trigger plugin not finding properties files when using Parameter factories
- Dominant language
- Java
- Stars
- 77
- Forks
- 174
- Avg merge
- 22h 27m
- Merged PRs (30d)
- 1
Description
Job A uses "For every property file, invoke one build" parameter factory to call downstream job B.
Here is the file pattern I am using:
d:\scripts\batch\salesconfig*.txt
There are two files in that folder:
salesconfig124.txt
salesconfig126.txt
Job B fails because job A is not setting the parameters it depends on, or something similar. If I look at the parameters for a build of Job B, they are empty.
I have the option "Action to perform when no files found" set to "Fail the build step" in Job A, but Job A does not fail, only Job B.
I have also tried:
Escaping backslashes in path (e.g. d:\\scripts\\batch
salesconfig*.txt)
Using different wildcards (e.g. salesconfig*.txt, salesconfig1??.txt)
Using absolute filename (e.g.d:\\scripts\\batch
salesconfig126.txt)
The process works when I use "Parameters from properties file" parameter type instead of a parameter factory, and specify the full path to one of the files, so I know the files are in the right format. I do not want to add a parameter for each file I have,
since I will eventually have 15 or more files.I would prefer to use the parameter factory if possible.
---
Originally reported by pimyjenkins, imported from: Parameterized Trigger plugin not finding properties files when using Parameter factories
Raw content of original issue
Job A uses "For every property file, invoke one build" parameter factory to call downstream job B.
Here is the file pattern I am using:d:\scripts\batch\salesconfig*.txt
There are two files in that folder:
salesconfig124.txt
salesconfig126.txtJob B fails because job A is not setting the parameters it depends on, or something similar. If I look at the parameters for a build of Job B, they are empty.
I have the option "Action to perform when no files found" set to "Fail the build step" in Job A, but Job A does not fail, only Job B.
I have also tried:
Escaping backslashes in path (e.g. d:\\scripts\\batch
salesconfig*.txt)
Using different wildcards (e.g. salesconfig*.txt, salesconfig1??.txt)
Using absolute filename (e.g.d:\\scripts\\batch
salesconfig126.txt)The process works when I use "Parameters from properties file" parameter type instead of a parameter factory, and specify the full path to one of the files, so I know the files are in the right format. I do not want to add a parameter for each file I have,
since I will eventually have 15 or more files.I would prefer to use the parameter factory if possible.
environment
```
Jenkins 1.643 on Windows Server 2012R2 x64
Java 1.8.0_20 x86
Parameterized Trigger plugin 2.30
```
Contributor guide
Assessment
This issue has not been assessed yet.