The 2git conversion engine

Defining the target

Define a target with the 'artifactory' type, followed by your target identifier (in this case, 'art').

target('artifactory', 'art') {
    /* Configure the target here */
}

Configuring the target

Required

url

Defines the Artifactory url

target('artifactory') {
    host 'artifactory.blumanufacturing.com:8081/artifactory'
}
repository

Defines the Artifactory repository

target('artifactory') {
    repository 'libs-snapshot-local'
}

Optional

user/password

Defines the Artifactory credentials

target('artifactory') {
    user 'art-user'
    password 'mYSecrEt2000'
}

Actions

Publish

Publishes a file to Artifactory

actions {
    def artifact = new File('build/client.zip')
    art.publish("com/blu/foober/${version}/client-${version}.zip", artifact)
}
GitHub issues