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 FTP 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 publish files to FTP.

System setup

FTP Server Name: name

Hostname: host IP or domain name

Username:ftp login user name

Password:ftp password

Remote Directory: remote root directory (recommended: /)

Click Advanced on Test Configuration

Port: Port

Timeout (ms): timeout (milliseconds)

Use active data mode: (unchecked) default option to use PASV (passive mode), select to use PORT (active mode)

Don't make nested dirs: no subordinate directories are created

Project configuration

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

Build step: Send Files over FTP Post-build Operation: Send build artifacts over FTP

FTP 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: it can be a single file or a directory relative to the path of the workspace)

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

Remote directory: remote directory

Click Advanced after Remote directory

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

Pattern separator: delimiter (separator that configures Exclude files and 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: create files only on ftp, not 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

Clean remote: all files in the remote directory will be deleted before upload

ASCII mode: the file transfer method is generally not selected by default.

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