-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
Platform: All, OS: All
When the joining job executes, it does not have access to the caller's
environment. This makes it "impossible", for example, to have a parameterized
job trigger a joining job and have the latter use user input (work arounds could
involve writing and reading to file on a shared drive).
The Parameterized Trigger Plugin allows calling subjobs while passing in the
caller's arguments. The same could most probably be implemented when calling the
joining job.
- is duplicated by
-
JENKINS-6071 Send parameterized-trigger variables/values to the join job as well
-
- Resolved
-
It appears relevant code from the Parameterized Trigger plugin is on lines 49-54
(revision 19295) of this file
https://svn.dev.java.net/svn/hudson/trunk/hudson/plugins/parameterized-trigger/src/main/java/hudson/plugins/parameterizedtrigger/PredefinedPropertiesBuildTriggerConfig.java
public class PredefinedPropertiesBuildTriggerConfig extends BuildTriggerConfig
{ values.addAll(action.getParameters()); }...
public void trigger(...)
{
...
if (includeCurrentParameters)
{
ParametersAction action = build.getAction(ParametersAction.class);
if (action != null)
}
...
}
...
}