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

Jenkins CLI cannot start build that uses repository connector version parameter

    Details

    • Similar Issues:

      Description

      I have a freestyle Jenkins job that contains a Maven Repository Artifact build parameter. I try running the jenkins cli command like this (not exact command, but very similar):
      jenkins -jar jenkins-cli.jar -s https://jenkins.excellus.com -i jenkinskey.txt build TestJobName -p "com.excellus.testartifact=2.0.0"

      Intention is to run the build with the artifact version being 2.0.0. What I get, instead, after typing in the passphrase for the SSH key is this:

      -----------------
      Unexpected exception occurred while performing build command!
      java.lang.RuntimeException: Not implemented
      at org.jvnet.hudson.plugins.repositoryconnector.VersionParameterDefinition.createValue(VersionParameterDefinition.java:117)
      at hudson.model.SimpleParameterDefinition.createValue(SimpleParameterDefinition.java:41)
      at hudson.cli.BuildCommand.run(BuildCommand.java:114)
      at hudson.cli.CLICommand.main(CLICommand.java:238)
      at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:608)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:583)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:542)
      at hudson.remoting.UserRequest.perform(UserRequest.java:120)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:326)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      at hudson.cli.CliManagerImpl$1.call(CliManagerImpl.java:63)
      at hudson.remoting.CallableDecoratorAdapter.call(CallableDecoratorAdapter.java:18)
      at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21)
      at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      -----------------

      Comment on the source file seems to indicate that the VersionParameterDefinition isn't supposed to be set that way – but I don't know how we can get the CLI to call a different method.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              tvail Tim Vail
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: