This is the 14th day of my participation in the Gwen Challenge in November. Check out the details: The last Gwen Challenge in 2021.”

❤️ About the author: Hello everyone, I am Xiao Xu Zhu. Java field quality creator 🏆, CSDN blog expert certification 🏆, Huawei Cloud enjoy expert certification 🏆

❤️ technology live, the appreciation

❤️ like 👍 collect ⭐ look again, form a habit

Increase the number of concurrent executions

background

In the actual production process of the development team, Jenkins construction is often used, but the default number of parallel execution of Jenkins is only 2. If there are multiple tasks, it will need to wait, affecting the work efficiency

The solution

Modify the desired number of actuators, save

Jenkins triggers the downstream build

Select the build trigger

Triggered after other projects are built

The hello World Maven downstream subproject 1 will be built when the hello World Maven project is successfully built.

Downstream subprojects are automatically built, and if there are multiple downstream subprojects, the build is executed in parallel

Jenkins View View management

When a lot of jobs are created, it may be difficult for us to find one of our jobs. In this case, we can create views in Jenkins. The view of the job is similar to the folder on our computer. You can use certain filtering rules to filter existing jobs to the view or directly create jobs in the view.

  • folder
  1. Folders are suitable for multiple teams sharing Jenkins
  2. Better performance and faster execution
  3. RBAC permission management is supported
  • views
  1. The views are flexible and do not change the path of the job
  2. Views have a variety of forms, levels, kanban, assembly lines and other diversification

View mode

Folder mode

Jenkins plug-in management

Automatic plug-in installation

Installing plug-ins manually

In addition to the above automatic plug-in installation method, Jenkins also provided us with manual plug-in installation method. Especially in China, due to network reasons, sometimes we failed to install plug-ins by using the above method. Therefore, we can install plug-ins by downloading and uploading them.

The official download site is updates.jenkins-ci.org/

Source: domestic mirrors.tuna.tsinghua.edu.cn/jenkins/plu…

It is important to choose to download the version of the corresponding version, otherwise sometimes compatibility errors will occur.

Jenkins’ version can be seen at: Systems Administration — About Jenkins:

Manually uploading plug-ins

Overwrite plug-in directory

We can back up /var/lib/jenkins/plugins on a machine that already has Jenkins installed, upload the backup files to the Jenkins directory that we need to overwrite, and then restart Jenkins.

This method also gives us a faster way to install Jenkins. We can skip the initial plug-in installation and install it in this way.

Actual combat 1: Manually install plug-ins

Github API (1.114.2)

To domestic source: mirrors.tuna.tsinghua.edu.cn/jenkins/plu… *github-api*

Download it and install it manually. See the manual installation steps above

Actual combat 2: Manually install plug-ins

From here for a version of the plug-in installed automatically installing plugins, go to domestic source: mirrors.tuna.tsinghua.edu.cn/jenkins/plu…