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 - |
문제
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.
해결책
다른 팁
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.
제휴하지 않습니다 StackOverflow