We would like to run scheduled builds on github using artifacts stored in Artifactory, from github.
I can download the "latest" artifacts using jf rt dl --build "Action Name" --flat
but this will also download from feature branches, whoever build last. However, we want to specifically only use the latest artifacts from the main branch only.
Is there a (proper) way of doing this?
You appear to have mixed builds and branches.
If the build name in your build contained the branch name, it would immediately meet your need. Take, for example, the following upload command:
jf rt upload a.txt generic-local/ --build-name="<build-name>-<branch>" --build-number="<build-number>"
Artifactory, as far as I know, does not now support downloading artifacts using VCS information.