Ah, nevermind. I think I can use https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin to write version numbers as variables and go down the route of creating a separate rollback job.
On Tuesday, 8 December 2015 17:22:51 UTC, [email protected] wrote: > > Hello, > > I currently have a jenkins job, say job1, that deploys some artifacts to a > server(s), eg it deploys A, B to some server. > I also have the rebuild plugin > <https://wiki.jenkins-ci.org/display/JENKINS/Rebuild+Plugin> which > displays a "rebuild last" icon on the job1 page which automatically knows > the version numbers of the last artifacts I ran the job against. > I now have another job, say job2, which can deploy A to some server > independently of B. > So let's say I have the following scenario: > > job1 deploys A0, B0 > job2 deploys A1 > job1 deploys A2, B1 <- but this deploy caused problems in production > > So now I'd like a "rollback" plugin, with a "rollback" icon - similar to > the "rebuild last" - on the job1 page which knows that the previous > deployed artifact A is A1, so it deploys A1, B0 instead of A0, B0 which is > what the rebuild plugin would do. > > I haven't found anything that does this so I thought I'd ask here if I > need to write a custom plugin or if there any other recommendation on how > to achieve what I want? > I'm confident that I can store various version numbers using the version > number plugin > <https://wiki.jenkins-ci.org/display/JENKINS/Version+Number+Plugin>. > I guess an alternative would be to create a separate rollback-job1 but > it'd be really nice to keep a rollback option within the job1 page itself > via a plugin. > > Thanks, > Oswald > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b77652a8-ec17-4319-a9f2-e44d10bad612%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
