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

Can not create a new job using copy-job after enabling matrix-based security

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • _unsorted, cli
    • None
    • Red Hat 4 OS

      After enabling the matrix-based security, I can not create a new job using the copy-job command.

      I have created a user and checked all the boxes in the matrix.

      When I run the copy-job command, I get the following message:

      -bash-3.00$ /home/build/hudson/jdk1.6.0_26/bin/java -jar /data/build/jenkins/jenkins-cli.jar -s http://drake:8080 copy-job DOVER_PROJECT_DEV_BUILD DOVER_dev --username jstanley --password mypasswd
      No such job 'DOVER_PROJECT_DEV_BUILD'
      java -jar jenkins-cli.jar copy-job args...
      Copies a job.
      SRC : Name of the job to copy
      DST : Name of the new job to be created.
      --username VAL : User name to authenticate yourself to Jenkins
      --password VAL : Password for authentication. Note that passing a
      password in arguments is insecure.
      --password-file VAL : File that contains the password

      When I disable the matrix-based security and select "Anyone can do anything", this works.

      -bash-3.00$ /home/build/hudson/jdk1.6.0_26/bin/java -jar /data/build/jenkins/jenkins-cli.jar -s http://drake:8080 copy-job DOVER_PROJECT_DEV_BUILD DOVER_dev

            bertrandgressier bertrandgressier
            jaystan Jason Stanley
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: