In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Click system Administration > manage plug-ins > > install the ssh plug-in
two。 Click system Management > system Settings > > ssh remote hosts to add the host information of ssh
3. Go back to the main panel
New task > > enter the project name, create a new free-style software project > > start configuring this project
A free-style project is divided into the following sections of configuration options
The first part is the general configuration. Here we need to check the parametric build so that parameters can be passed to the project during construction. We use character parameters here, as follows, the name is required, the default value and description can be left out, if the default value is not filled in, if there is no assignment during construction, then the parameter is null. If the default value is filled in, the default value is not modified during construction. The default value of the parameter is inherited.
The second part is to build the trigger, here we check to trigger the remote build, and then fill in the token, which is customized by us and used when triggering
* * the remote trigger can be triggered by accessing url under windows and by curl under linux
The format of the url accessed under windows is as follows
Http://192.168.122.201:8080/job/ project name / buildWithParameters?token= token value & key1=value1&&key2=value2
The format of url for curl under linux is as follows
Curl-u admin:123456-X GET "http://192.168.122.201:8080/job/ project name / buildWithParameters?token= token value & key1=value1&&key2=value2"
* * (Note: the-u admin:123456 followed by curl is the login user name and password of the jenkins platform, and the following url needs to be enclosed in English double quotation marks, so the responsible parameters will not be passed.)
The third part is the build, where you choose to add the build steps, and then select, this option appears only when the ssh plug-in above is installed.
The following drop-down box will appear in the ssh host options set in the system settings. Since I only set one host here, there is only one option in the drop-down option box. Fill in the command section with the actions to be performed on the host of ssh. The content of command here is actually the content of the shell script. A simple example is as follows, when job is built. The value assigned to project is overwritten in the project.txt under root.
Click Save at the bottom, and a remotely triggered free-style project is completed. **
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.