Jenkins-shell plug-in use

Source: Internet
Author: User

First, execute the command locally in Jenkins

The new project and git plug-ins in the same way, just choose the source control to use None, and then select the execute Shell module in the build , command to write the commands needed to execute

Ii. remote execution of commands in Jenkins

New project and git plugin in the same way, just select the source management using None, and then select Execute Shell script on remote host using SSH module in the build environment

1. Select the server on the SSH site that needs to be connected remotely

(1) The server selected here needs to be configured in advance in System Management .

System Management >> system setup

The password for the server can be added using the Add method

Test ssh to connect properly after adding finished

The successful connection appears to prove the connection was successful.

2.then the command to execute after the post Bulid script is written is the command that needs to be executed on the remote server

Jenkins-shell plug-in use

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.