jenkinsci / jenkinsci/parameterized-trigger-plugin
[JENKINS-10779] Non-existing parameters are not empty but replaced with parameter name
- Dominant language
- Java
- Stars
- 77
- Forks
- 174
- Avg merge
- 22h 27m
- Merged PRs (30d)
- 1
Description
Version
- Jenkins Parameterized Trigger plugin 2.11
- Jenkins ver. 1.424
Setup
- Project1 is set up to trigger parameterized build on Project2 with parameter
SOURCE_JOB_NAME=$JOB_NAME
- Project2 is set up to trigger parameterized build on Project3 with parameter
SOURCE_JOB_NAME=$SOURCE_JOB_NAME
- Project3 has one build command:
echo Source project name is \"$SOURCE_JOB_NAME\"
Problem
When building Project1, Project3 prints the following as expected:
Source project name is "Project1"
But, when manually triggering Project2, then Project3 prints:
Source project name is "$SOURCE_JOB_NAME"
I would expect it to print:
Source project name is ""
Which is the normal behaviour when playing around with variables in sh.
---
Originally reported by mabahj, imported from: Non-existing parameters are not empty but replaced with parameter name
Raw content of original issue
Version
- Jenkins Parameterized Trigger plugin 2.11
- Jenkins ver. 1.424
Setup
- Project1 is set up to trigger parameterized build on Project2 with parameter
SOURCE_JOB_NAME=$JOB_NAME
- Project2 is set up to trigger parameterized build on Project3 with parameter
SOURCE_JOB_NAME=$SOURCE_JOB_NAME
- Project3 has one build command:
echo Source project name is \"$SOURCE_JOB_NAME\"
Problem
When building Project1, Project3 prints the following as expected:
Source project name is "Project1"
But, when manually triggering Project2, then Project3 prints:
Source project name is "$SOURCE_JOB_NAME"
I would expect it to print:
Source project name is ""
Which is the normal behaviour when playing around with variables in sh.
Contributor guide
Assessment
This issue has not been assessed yet.