Run a jenkins code build environment

1. Download the jenkins.war package from the official website and put it under tomcat. The root directory of jenkins is under /root/.jenkins by default.

2. To set access rights, you need to enable "Startup Security" in "Configure Global Security", use "Jenkins Proprietary User Database" for "Security Domain", and allow users to register.

3. Select "Security Matrix" for the authorization policy, add the admin group and authorize all permissions, and anonymous users only have the Read permission.

4. The function of secure access is enabled, refer to the official wiki, https://wiki.jenkins-ci.org/display/JENKINS/Standard+Security+Setup. If the access control configuration fails, you can delete the information of <authorizationStrategy> <permission> in the .jenkins/config.xml file and update <useSecurity>false</useSecurity> to restore all functions of anonymous access.

5. Apply and save, and restart tomcat.

6. After visiting http://localhost:8080/jenkins, you need to register an admin user to log in and create a Job.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326308229&siteId=291194637