In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
This article is to share with you how to install and configure Jenkins. I believe most people have not learned this skill. In order to make you understand better, I have summarized the following contents. Without saying much, let's read on.
1) Environment preparation: IP address Jenkins192.168.1.8 test side 192.168.1.7
To deploy Jenkins, you can refer to Jenkins+Gitlab for continuous integration.
2) Jenkins server configures secret-free login and user configuration authorization for Jenkins [root@jenkins ~] # ssh-copy-id root@192.168.1.7# sends the local public key to the test side [root@jenkins ~] # visudo # to authorize root ALL= (ALL) ALL # write the authorization rule jenkins ALL= (ALL) NOPASSWD for jenkins users under root users: / usr/bin/ssh3) add a pipeline plug-in to the web page of Jenkins
As shown in the figure:
Download the required plug-ins according to the file name order (I numbered the plug-ins, 1, 2, 3. A total of 11), according to the following process, upload to Jenkins in turn.
4) create a new task
As shown in the figure:
Test side to write scripts for testing, Jenkins server and test!
[root@localhost ~] # tee test.sh echo "hello world" > EOF [root@localhost ~] # chmod + x test.sh [root@jenkins ~] # sudo ssh root@192.168.1.7 sh-x / root/test.shhello world+ echo 'hello world'
Return to the home page of Jenkins and configure a web01 project that you created earlier:
The post-build action added above is that when the project is built, it automatically triggers the pipeline project that you just created.
5) create a new view (to make it easier to test the relationship between two projects more intuitively)
As shown in the figure:
6) build and test:
The following is the previous, pay attention to the color contrast before and after the test, the following colors are not associated with the build:
After executing the RUN command, refresh the page after the construction is completed, and you can see the following:
It is obvious that the two colors of the newly generated view are the same, indicating that the association is successful.
After reading the above, have you mastered the installation and configuration of Jenkins? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.