Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Publish Over FTP of the jenkins plug-in

Shulou Source: shulou.com Published: 2022-06-03 04:50:07 11月25日 Update

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.

Tags: Directory file configuration plug-in advanced delimiter date format pattern system behavior faceted project transfer active subordinate two host content single Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Docker vpn Apple macOS