This is the 17th day of my participation in the August More text Challenge. For details, see:August is more challenging
directory
Download and install
Using Jenkins
Configure and run the first Job
Try installing a plug-in
Install the Chinese package
Upgrade other plug-ins
We had problems downloading the plug-in earlier
Note: This article is based on CentOS7. To install Jenkins, you need to install JDK or JRE in advance. \
Download and install
Download the new Jenkins WAR package
You can go to Jenkins’ website or search for the latest stable version in China: www.jenkins.io/download/
This article USES the Jenkins: download.csdn.net/download/ge… (Can be downloaded here, the site is slow to access outside the country)
Start the Jenkins
export JENKINS_HOME=/devops/jenkins/home This directory holds all Jenkins configurations
nohup java -jar ./jenkins.war > jenkins.log &
Copy the code
Using Jenkins
Configure and run the first Job
Here we create a Job of type FreeStyle, and the contents are as follows, simply showing the Maven and Java versions.
mvn -version
java -version
Copy the code
Triggering Job running
Configure as a domestic Jenkins plugin center
Copy: mirrors.tuna.tsinghua.edu.cn/jenkins/upd…
Click “Submit”(PS: this is the configuration time card, click several times to cause an unexpected error)
This is a problem because the plug-in upgrade Center does the signature check. We have changed the default and need to add the following parameter to the startup script and set it to ignore.
-Dhudson.model.DownloadService.noSignatureCheck=true
More resources to move to tsinghua open source image source: mirrors.tuna.tsinghua.edu.cn/jenkins/
Try installing a plug-in
Install a plugin to change the build status to green
Caused: java.io.IOException: Failed to load the to https://updates.jenkins.io/download/plugins/greenballs/1.15.1/greenballs.hpi /usr/local/src/jenkins/home/plugins/greenballs.jpi.tmp at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:1287) Caused: java.io.IOException: Failed to download from https://updates.jenkins.io/download/plugins/greenballs/1.15.1/greenballs.hpi (redirected to: https://get.jenkins.io/plugins/greenballs/1.15.1/greenballs.hpi).Copy the code
Ah, actually encountered an error, forget it, we will see later. Go ahead and try a domestic plugin.
Install the Chinese package
The Chinese package itself is a plug-in (HPI/JPI) suffix.
To further verify, go to the server and check the Jenkins Home Plugins directory.
Check the Restart Jenkins column to Restart and load the downloaded plug-in.
After the plugin is installed, you can see the Locale in system Configuration, but there is no Locale.
Click on the plug-in, jump to the website, also don’t see any configuration instructions = > plugins. Jenkins. IO/localizatio…
The plugin has been installed, but the expected configuration bit did not appear, it is estimated that the version compatibility problem, will not be dealt with.
Upgrade other plug-ins
The new Jenkins will have a lot of warning messages, you can also go to the Update Center, select upgrade, remove the warning.
Through the above operation, the thunder study committee reduces the alarm number to 1, but still have a lot of plug-in to lack, write here first.
We had problems downloading the plug-in earlier
The school committee clearly set the domestic Plugin Center, and the log also shows that the Plugin repo was downloaded from the default.
A look at the plug-in configuration file on the Jenkins server shows multiple sites that are duplicated.
Delete to leave a retry download.
Many plugins now download correctly.
After successful installation and restart, open the original Test Job and find that the circular icon next to the Console Output turns green.
Continuous learning and continuous development, I am the Lei School committee! Programming is fun, but the key is to get the technology straight. Creation is not easy, please support a lot, click like collection to support the school committee!
Reference links:
www.jenkins.io/
plugins.jenkins.io/
jenkins-zh.cn/wechat/
Chinese plug-in problems – cloud.tencent.com/developer/a…