What's the best way to deploy with two factor auth?
294 views
Skip to first unread message
Rodrigo Dominguez
unread,
Jul 28, 2015, 10:58:26 AM7/28/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Users
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
Suckow, Thomas J
unread,
Jul 28, 2015, 12:19:13 PM7/28/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jenkins...@googlegroups.com
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.