Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-19140

Default parameters are not passed to a parametrized job if some keys only are passed

    XMLWordPrintable

Details

    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

          williambernardet William Bernardet created issue -
          scm_issue_link SCM/JIRA link daemon made changes -
          Field Original Value New Value
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          kutzi kutzi made changes -
          Priority Blocker [ 1 ] Major [ 3 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 150587 ] JNJira + In-Review [ 193590 ]

          People

            kutzi kutzi
            williambernardet William Bernardet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: