Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Publish Over SSH of the jenkins plug-in

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Description

This plug-in can connect to other servers through ssh.

Public allocation

Passphrase: password

Path to the Path to key:key file (private key)

Key: copy the private key to this box

Disable exec: disable running command

Private configuration

SSH Server Name: server name.

Hostname: the hostname or ip address that needs to connect to the ssh

Username: user name

Remote Directory: remote directory

Use password authentication, or use a different key: public configuration can be replaced

Advanced private configuration:

Port: Port

Timeout (ms): timeout (milliseconds) is available by default

Disable exec: disable running command

Test Configuration: testing connection

Project configuration

In the project configuration, you can find the configuration of this plug-in in the following three places.

Build environment: Send files or execute commands over SSH before the build starts and Send files or execute commands over SSH after the build runs

Build step: Send files or execute commands over SSH

Post-build operation: Send build artifacts over SSH

SSH Server Name: choose the name of a configuration that you configure in the system settings

Transfer Set Source files: the file to be uploaded (Note: the path relative to the workspace. Look at the configuration below, you can fill in more than one, used by default, separated)

Remove prefix: remove directories (only directories in Transfer Set Source files can be specified)

Remote directory: remote directory (fill in according to your requirements, because I am here for testing, so lazy did not fill in. System configuration is inherited by default)

Advanced:

Exclude files: excluded files (useful when you transfer directories, use wildcards, such as * * / * .log, * * / * .tmp, .Git /)

Pattern separator: delimiter (the delimiter that configures Transfer Set Source files. If you change it here, the above content also needs to be changed)

No default excludes: disable default exclusion rules

Make empty dirs: this option changes the default behavior of the plug-in. The default behavior is to match whether the file exists, and if so, create a directory to store it. Selecting this option directly creates a directory to store files, even if it is an empty directory.

Flatten files: only upload files, do not create directories (except remote directories)

Remote directory is a date format: create a folder with a date in the remote directory (you need to configure the date format in Remote directory). For more information, please see the following table:

Remote directory

Directories created

'qa-approved/'yyyyMMddHHmmss

Qa-approved/20101107154555

'builds/'yyyy/MM/dd/'build-$ {BUILD_NUMBER}'

Builds/2010/11/07/build-456 (if the build was number 456)

Yyyy_MM/'build'-EEE-d-HHmmss

2010_11/build-Sun-7-154555

Yyyy-MM-dd_HH-mm-ss

2010-11-07 15-45-55

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report