Details
-
Bug
-
Status: Resolved (View Workflow)
-
Critical
-
Resolution: Fixed
-
None
Description
Hello,
According to the documentation I should be able to do the following:
def ret = input(message: 'some message', submitterParameter: 'username_approval')
println(ret['username_approval'])
However I only receive a null object instead of the expected map.
Regards,
Attachments
Issue Links
- is blocking
-
JENKINS-31396 Access to submitter ID from return value of input step
-
- Resolved
-
- is duplicated by
-
JENKINS-42897 input step can return a null when approved via link in console output
-
- Resolved
-
- links to
Activity
Field | Original Value | New Value |
---|---|---|
Description |
Hello, According to the documentation I should be able to do the following: {{ def ret = input(message: 'some message', submitterParameter: 'username_approval') println(ret['username_approval']) }} However I only receive a null object instead of the expected map. Regards, |
Hello, According to the documentation I should be able to do the following: {{def ret = input(message: 'some message', submitterParameter: 'username_approval') println(ret['username_approval'])}} However I only receive a null object instead of the expected map. Regards, |
Description |
Hello, According to the documentation I should be able to do the following: {{def ret = input(message: 'some message', submitterParameter: 'username_approval') println(ret['username_approval'])}} However I only receive a null object instead of the expected map. Regards, |
Hello, According to the documentation I should be able to do the following: def ret = input(message: 'some message', submitterParameter: 'username_approval') println(ret['username_approval']) However I only receive a null object instead of the expected map. Regards, |
Link |
This issue is blocking |
Assignee | Jesse Glick [ jglick ] |
Summary | submitterParameter returns nothing | submitterParameter does not work without at least one actual parameter |
Assignee | Jesse Glick [ jglick ] |
Labels | pipeline-input |
Priority | Minor [ 4 ] | Critical [ 2 ] |
Comment | [ I realize this is a bit off topic but is there a separate issue for having a feature to just add a new repository (or delete a no longer needed repo) by name instead of needing to scan the entire org to pick up a new repo? I feel like this would eliminate 99% of the use cases to need to scan the organization at all. Thanks! ] |
Link |
This issue is duplicated by |
Remote Link | This issue links to "PR 13 (Web Link)" [ 16300 ] |
Labels | pipeline-input |
Assignee | Kun Tang [ tangkun75 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | In Review [ 10005 ] |
Resolution | Fixed [ 1 ] | |
Status | In Review [ 10005 ] | Resolved [ 5 ] |
To add more information, I am seeing this same issue. I am only able to access submitterParameter if I also include parameters. Using the workflow defined in the test test_submitter_parameter_no_submitter() I see the following behavior:
Pipeline:
Output:
Is there a different way to access the submitterParameter without including parameters?
Versions/Environment:
Jenkins 2.36 (rpm installed from the jenkins-ci repository)
Pipeline Input Step 2.5
openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-b15)
OpenJDK 64-Bit Server VM (build 25.111-b15, mixed mode)