I'm new to artifactory, have some basic question. Unfortunately did not find best practices/suggested workflows in the jfrog docs.. As far as I understand there are 2 basic flows for generic build to work with Jenkins:
- Create tar and with naming convention that holds the build number in it's name (for example my-build-dev-128.tar.gz) and a file ( last-build.txt) that will hold the last build string. So when Jenkins/user needs to download the latest build I download the last-build.txt and get the build number from the string, then download the last artifact.
- Add
server.publishBuildInfo buildInfoto the artifactory upload and then each file has it's own build and that way when you download it has build properties you can work with - however I was not able to pull specific build (have to specify the files that I need and it's always downloading the last build of the file) .
So, what is the best workflow practice for Jenkins/Artifactory marriage ( push , pull, get latest and get older artifacts in automatic way (cli/API/Jenkins plugin - but not GUI)?