Skip to content

Instantly share code, notes, and snippets.

@jbouse
Last active September 9, 2015 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbouse/bd5260e2a7635867f973 to your computer and use it in GitHub Desktop.
Save jbouse/bd5260e2a7635867f973 to your computer and use it in GitHub Desktop.
<metadata>
<groupId>com.example.myco</groupId>
<artifactId>myco-artifact</artifactId>
<version>0.0.2-20150909.152320-1</version>
<versioning>
<snapshot>
<timestamp>20150909.152320</timestamp>
<buildNumber>1</buildNumber>
</snapshot>
<lastUpdated>20150909152343</lastUpdated>
<snapshotVersions>
<snapshotVersion>
<extension>pom</extension>
<value>0.0.2-20150909.152320-1</value>
<updated>20150909152320</updated>
</snapshotVersion>
<snapshotVersion>
<extension>zip</extension>
<value>0.0.2-20150909.152320-1</value>
<updated>20150909152320</updated>
</snapshotVersion>
</snapshotVersions>
</versioning>
</metadata>
# This WORKS providing both version and snapshot_version
salt-call artifactory.get_snapshot artifactory_url='http://artifactory.example.com/artifactory' repository='myco-snapshots' artifact_id='myco-artifact' group_id='com.example.myco' packaging='zip' version='0.0.2-SNAPSHOT' snapshot_version='0.0.2-20150909.152320-1'
# This replicates the artifactory.downloaded call and FAILS as it only passes along version not snapshot_version
salt-call artifactory.get_snapshot artifactory_url='http://artifactory.example.com/artifactory' repository='myco-snapshots' artifact_id='myco-artifact' group_id='com.example.myco' packaging='zip' version='0.0.2-SNAPSHOT'
Salt: 2015.5.3
Python: 2.6.6 (r266:84292, Nov 21 2013, 10:50:32)
Jinja2: 2.2.1
M2Crypto: 0.20.2
msgpack-python: 0.4.6
msgpack-pure: Not Installed
pycrypto: 2.0.1
libnacl: Not Installed
PyYAML: 3.10
ioflo: Not Installed
PyZMQ: 14.5.0
RAET: Not Installed
ZMQ: 4.0.5
Mako: Not Installed
Tornado: Not Installed
myco-artifact:
artifactory.downloaded:
artifact:
artifactory_url: http://artifactory.example.com/artifactory
repository: 'myco-snapshots'
artifact_id: 'myco-artifact'
group_id: 'com.example.myco'
packaging: 'zip'
version: '0.0.2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment