Details
-
Improvement
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
Description
Consider the following workflow script:
echo "bool=$bool"
echo bool.getClass().toString()
Output:
Started by user Jos Backus
Running: Print Message
bool=false
Running: Print Message
class java.lang.String
Running: End of Workflow
Finished: SUCCESS
I would expect the name of the class to be java.lang.Boolean, not java.lang.String. This forces one to add lines such as:
bool = bool == 'true'
Attachments
Issue Links
- is blocking
-
JENKINS-27413 Handle file parameters
-
- Resolved
-
- is duplicated by
-
JENKINS-27388 Build parameters are injected as typeless strings into workflow script
-
- Resolved
-
- is related to
-
JENKINS-29952 Allow access to environment variables as Groovy variables
-
- Resolved
-
-
JENKINS-30519 Declarative job properties in multibranch
-
- Resolved
-
-
JENKINS-34101 Option for input parameters to be flattened to string
-
- Open
-
-
JENKINS-35698 Initial run of parameterized pipeline build should return properties default value
-
- Resolved
-
- links to
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue is duplicated by |
Issue Type | Bug [ 1 ] | Improvement [ 4 ] |
Summary | Boolean parameters injected as Strings into Groovy Workflow Plugin environment | Boolean parameters injected as String |
Link |
This issue is blocking |
Link |
This issue is related to |
Link | This issue is related to SECURITY-170 [ SECURITY-170 ] |
Link |
This issue is related to |
Link |
This issue is related to |
Link |
This issue is related to |
Link | This issue is related to JENKINS-34101 [ JENKINS-34101 ] |
Epic Link | JENKINS-35394 [ 171187 ] |
Link |
This issue is related to |
Workflow | JNJira [ 161500 ] | JNJira + In-Review [ 180721 ] |
Component/s | pipeline-general [ 21692 ] |
Component/s | workflow-plugin [ 18820 ] |
Component/s | workflow-cps-plugin [ 21713 ] | |
Component/s | pipeline [ 21692 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Remote Link | This issue links to "PR 60 (Web Link)" [ 14843 ] |
Status | In Progress [ 3 ] | In Review [ 10005 ] |
Resolution | Fixed [ 1 ] | |
Status | In Review [ 10005 ] | Resolved [ 5 ] |
Remote Link | This issue links to "CloudBees Internal OSS-65 (Web Link)" [ 19248 ] |