ikedam commented on Bug JENKINS-22469

example steps using CLI:

  1. Parepare users and projects as above.
  2. *Grant Overall.Read and Job.Read to Anonymous, for JENKINS-12543.*
  3. retreive jenkins-cli.jar
    curl -o jenkins-cli.jar http://[path to jenkins]/jnlpJars/jenkins-cli.jar
  4. retreive current config.xml
    java -jar jenkins-cli.jar -s http://[path to jenkins]/ get-job [projectname] --username devel --password devel > config.xml
  5. modify "<userid>devel</userid>" to "<userid>admin</userid>" in config.xml
  6. Overwrite the configuration
    java -jar jenkins-cli.jar -s http://[path to jenkins]/ update-job [projectname] --username devel --password devel < config.xml
  7. Open the configuration page. The project is configured to run as "admin".
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to