maven - I want to get the artifact version deployed by Jenkins -
i run maven deploy step (using maven build step) , artifact deployed timestamp. i want create docker image has deployed artifact , docker image tagged artifact timestamp. common scenario tag of docker image has same artifact contains. i have read couple of posts jenkins maven deploy jar nexus - artifact naming jenkins - how can pass parameters upstream downstream sonatype nexus rest api fetch latest build version where [3] gives me list of snapshot-versions server in xml, has parsed. since i'm pushing artifact in jenkins job, possible know full artifact name in build instead of getting server. is there api/any other way, can give name of latest artifact instead of artifact xml the -snapshot part of files (attached on maven deployment 'task') replaced timestamped version @ deploy:deploy phase. 1) create docker image file extend artifact pom docker-maven-plugin (provided spotify @ https://github.com/spotify/docker-maven-plugin ) . [.