rtMavenDeployer如何添加属性?

时间:2019-10-18 16:33:48

标签: maven jenkins artifactory

我没有发现任何例子

这是脚本管道的工作方式:

rtMaven.deployer.addProperty("status", "in-qa")

rtMavenDeployer是否具有“属性”及其仅列表?:https://jenkins.io/doc/pipeline/steps/artifactory/#rtmavendeployer-set-maven-deployer

rtMavenDeployer (
        id: 'deployer-unique-id',
        properties: ????,
        serverId: 'my-server',
        releaseRepo: 'myrepo',
        snapshotRepo: 'myrepo'
)

1 个答案:

答案 0 :(得分:1)

它是[[key1 = value1“,” key2 = value2“]形式的属性列表。

rtMavenDeployer (
        id: 'deployer-unique-id',
        properties: ["key1=value1", "key2=value2"],
        serverId: 'my-server',
        releaseRepo: 'myrepo',
        snapshotRepo: 'myrepo'
)