Others may have a better idea, but if I had to keep the two-factor I would archive the artifacts in the main build. Then create a deployment job that uses the copy artifact plugin to grab the latest build and have a parameter that was the second factor. You could then trigger that build and enter in the authentication token and it will pull down the artifact and deploy. Hopefully copying the artifact takes less than 1 min.
From: <jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>> on behalf of Rodrigo Dominguez <rorra.ro...@gmail.com<mailto:rorra.ro...@gmail.com>> Reply-To: "jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>" <jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>> Date: Tuesday, July 28, 2015 at 7:58 AM To: Jenkins Users <jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>> Subject: What's the best way to deploy with two factor auth? I have a ruby application which I deploy with capistrano, on each deploy it uses to authentify me: 1) SSL Key 2) Password 3) Google Two Factor Auth The SSL Key is automatically handled, but I have to manually input the Password and the Google Two Factor Auth which changes every minute. I'm wondering what would be the best way to setup jenkins to ask me for the password and two factor auth when deploying and input that into capistrano at the moment of deployment. Thx -- 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 jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9b45df58-5287-4082-b5ee-b7e8e5fad934%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/9b45df58-5287-4082-b5ee-b7e8e5fad934%40googlegroups.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/D1DCF8FA.18E61%25thomas.suckow%40pnnl.gov. For more options, visit https://groups.google.com/d/optout.