This state downloads artifacts from artifactory.
Ensures that the artifact from artifactory exists at given location. If it doesn't exist, then it will be downloaded. If it already exists then the checksum of existing file is checked against checksum in artifactory. If it is different then the step will fail.
Details of the artifact to be downloaded from artifactory. Various options are:
latest
- Download the latest release of this artifact - latest_snapshot
- Download the latest snapshot for this artifactAn example to download an artifact to a specific file:
jboss_module_downloaded: artifactory.downloaded: - artifact: artifactory_url: http://artifactory.intranet.example.com/artifactory repository: 'libs-release-local' artifact_id: 'module' group_id: 'com.company.module' packaging: 'jar' classifier: 'sources' version: '1.0' - target_file: /opt/jboss7/modules/com/company/lib/module.jar
Download artifact to the folder (automatically resolves file name):
jboss_module_downloaded: artifactory.downloaded: - artifact: artifactory_url: http://artifactory.intranet.example.com/artifactory repository: 'libs-release-local' artifact_id: 'module' group_id: 'com.company.module' packaging: 'jar' classifier: 'sources' version: '1.0' - target_dir: /opt/jboss7/modules/com/company/lib
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/states/all/salt.states.artifactory.html