My CI has two main steps. Build and deploy. The result of build is that an artifact is uploaded to maven nexus. And currently deploy step just takes the latest artifact from nexus and deploys it.
What I need is the possiblity to somehow deploy older builds.
I see two possiblities for this.
- Somehow start keeping information on what build resulted in what artifact and when running an older deployment manually then find the specific artifact from nexus and deploy it.
- Make an totally independent deployment task which takes the artifact as an argument.
Both of them seem kind of strange to me. Is there a better solution?