尝试将以下语法从脚本化管道移植到声明性管道,但它不起作用。显然,我收到错误消息,该步骤不是声明性 Jenkinsfile 中的有效关键字。找不到任何文档来解决此问题。有什么帮助吗?
stage("publish to s3") {
step([
$class: 'S3BucketPublisher',
entries: [[
sourceFile: 'mybinaryFile',
bucket: 'GoBinaries',
selectedRegion: 'eu-west-1',
noUploadOnFailure: true,
managedArtifacts: true,
flatten: true,
showDirectlyInBrowser: true,
keepForever: true,
]],
profileName: 'myprofile',
dontWaitForConcurrentBuildCompletion: false,
])
}