java - Why puppet is not able to download latest from snapshot repo -
we using puppet , mcollective our server deployments. both of our dev , test environments, release artifacts (from 2 different branches) same nexus snapshot repo (we use maven classifier
distinguish between dev , test artifacts). artifact details like:
dev artifact
<groupid>my.group</groupid> <artifactid>my-app</artifactid> <version>1.0-snapshot</version> <classifier>dev</classifier>
test artifact
<groupid>my.group</groupid> <artifactid>my-app</artifactid> <version>1.0-snapshot</version> <classifier>test</classifier>
these artifacts released through 2 jenkins jobs. puppet/mcollective use latest
version; however, reason ignores classifier while determining latest. meant was, lets assume in nexus snapshot repo dev artifact created @ 21-july-2015 1pm gmt
, test artifact created @ 21-july-2015 2pm gmt
. on server, if want dev deploy, mcollective agent downloads test artifact nexus repo (even after provide classifier dev
in puppet configuration).
i see script download-artifact-from-nexus.sh
believe used download artifact nexus repo. script uses nexus rest apis download artifact. not aware of these rest apis, feel script not use maven-metadata.xml
mentions artifact latest based on classifier. new puppet/mcollective , not sure how resolve this. appreciate if can provide help.
Comments
Post a Comment