Details
-
Bug
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Fixed
-
None
Description
To reproduced the issue I've created a job which have 2 StringPropertyValues as job parameter:
parameter 1:
name: key
value: default value
parameter 2:
name: key2
value: default value
and a simple batch script which dumps the values:
echo key: %key%
echo key2: %key2%
if I call "!build myjob now" then I got:
key: default value
key2: default value
but if I call "!build myjob now key=myvalue" then I got:
key: myvalue
key2:
I am expecting to have:
key: myvalue
key2: default value
I've made a pull request with the relevant fix to handle properties default
value correctly:
https://github.com/jenkinsci/instant-messaging-plugin/pull/10
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Priority | Blocker [ 1 ] | Major [ 3 ] |
Workflow | JNJira [ 150587 ] | JNJira + In-Review [ 193590 ] |
Code changed in jenkins
User: Christoph Kutzinski
Path:
src/main/java/hudson/plugins/im/bot/BuildCommand.java
src/test/java/hudson/plugins/im/bot/BuildCommandTest.java
http://jenkins-ci.org/commit/instant-messaging-plugin/6b139e304c7fd214c8d3d0caa3799a5361c28ca2
Log:
Merge pull request #10 from williambernardet/master
[FIXED JENKINS-19140] Fix the handling of (default) parameters for project triggering.
Compare: https://github.com/jenkinsci/instant-messaging-plugin/compare/29e24e0f1e57...6b139e304c7f