Jenkins Permission _ Operation Dimension

Source: Internet
Author: User

Http://www.cnblogs.com/melody-emma/p/6026622.html

You are need to modify the permission for Jenkins user so, you can run the shell commands. Can install the Jenkins as as service (download the RPM package), you might need to change the ports because by Defaul T it runs HTTP on 8080 and AJP on 8009 port.

Following process is for CentOS
1. Open up the "This script" (using VIM or other editor):

Vim/etc/sysconfig/jenkins

2. Find this $JENKINS _user and change to "root":

$JENKINS _user= "Root"

3. Then change the ownership of Jenkins home, Webroot and logs:

Chown-r root:root/var/lib/jenins
chown-r root:root/var/cache/jenkins
chown-r root:root/var/log/jenkins

4) Restart Jenkins and check the user has been changed:

Service Jenkins restart
ps-ef | grep Jenkins

Now, you are able to run the Jenkins jobs as the "should" and all the shell command'll be executed as root.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.