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