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

Could not select Node parameter if running through CLI

      When running
      java -jar jenkins-cli.jar -s http://[HOSTNAME]:8080/ build [JOB-NAME] -s --username [USER] --password [PASSWORD] -p Branch=[VALUE_1] -p Node=[VALUE_2]
      command in command prompt I got issue (see screenshot)

          [JENKINS-11870] Could not select Node parameter if running through CLI

          Oleksandr Popov created issue -
          Anthony Pioli made changes -
          Component/s New: nodelabelparameter [ 15873 ]
          Anthony Pioli made changes -
          Assignee New: Dominik Bartholdi [ domi ]
          Dominik Bartholdi made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 142113 ] New: JNJira + In-Review [ 189977 ]
          Krishna S made changes -
          Resolution Original: Cannot Reproduce [ 5 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Krishna S made changes -
          Comment [ Using Jenkins 1.460, using CLI to run parameterized job
           /usr/local/java/bin/java -jar jenkins-cli.jar -s <Jenkins URL> -i <Private key Path> build "<Job Name>" -p SERVER=lnx001

          Build will trigger but it will never start, keeps on waiting for the node to start. It does not take the node i pass from command prompt. See the screen shot attached

           !jenkins-cli-issue.PNG|thumbnail!

          ]
          Dominik Bartholdi made changes -
          Resolution New: Incomplete [ 4 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
          Mark Waite made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            domi Dominik Bartholdi
            pxantom Oleksandr Popov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: