If your goal is to save on storage in Artifactory, I'd suggest setup snapshot cleanup instead. You'll always have couple of last sucessfuly tested wars and you won't polute your Artifactory with too many old snapshots.
Deploying a war file from Artifactory to a server
-
30-07-2022 - |
Pergunta
Each commit to our code result in regression tests and deployment of a war file to Artifactory.
We would like to deploy once a day the last successfully tested war. What would be the best way to do this? We use Jenkins as our CI tool.
Solução
Outras dicas
Create a second job that copies the latest artifact (Copy Artifact Plugin) from your build job and then deploys the artifact. The second job can be scheduled to run once a day.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow