Google, , .
, :
stage ('Deploy') {
steps {
ftpPublisher alwaysPublishFromMaster: true,
continueOnError: false,
failOnError: false,
masterNodeName: '',
paramPublish: null,
publishers: [[configName: 'External Host', transfers: [[asciiMode: false, cleanRemote: true, excludes: '', flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '', remoteDirectorySDF: false, removePrefix: 'public', sourceFiles: 'public/*,public/**/*']], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false]]
}
- Jenkins " FTP" , .
- add new new required parameters masterNodeName and paramPublish with empty string and zero respectively.
In the publisher block, these parameters correspond to the parameters defined in the old-style Jenkins configuration in the Transfers section, so see Details.
I hope this helps future people deal with the ftpPublisher plugin in the pipeline.
source
share