Search code examples
mavenjenkinsartifactory

rtMavenDeployer how do you add properties?


I found no examples of this

This is how it works with the scripted pipeline:

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

rtMavenDeployer however has "properties" and its just a list?: https://jenkins.io/doc/pipeline/steps/artifactory/#rtmavendeployer-set-maven-deployer

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

Solution

  • It is a list of properties in the form of ["key1=value1", "key2=value2"].

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