Re: Username and Password to checkout git in Jenkinsfile (groovy)

2017-10-02 Thread Vikas Kumar
I have got a solution. Pls see this link for details. Thanks. On Monday, 2 October 2017 15:13:20 UTC+11, Vikas Kumar wrote: > > Thanks Mark, yeah this is one option but in this

Re: Username and Password to checkout git in Jenkinsfile (groovy)

2017-10-01 Thread Vikas Kumar
Thanks Mark, yeah this is one option but in this case, username and password are visible in console output. I am thinking to use SSH Keys. On Monday, 2 October 2017 13:46:24 UTC+11, Mark Waite wrote: > > If your GIT_URL is https, then you could embed the username and password > into the URL.

Re: Username and Password to checkout git in Jenkinsfile (groovy)

2017-10-01 Thread Mark Waite
If your GIT_URL is https, then you could embed the username and password into the URL. For example, the URL: https://github.com/user/repo can be https://username:passw...@github.com/user/repo Mark Waite On Sun, Oct 1, 2017 at 8:36 PM Vikas Kumar wrote: > We are

Username and Password to checkout git in Jenkinsfile (groovy)

2017-10-01 Thread Vikas Kumar
We are trying to use AWS DynamoDB (with KMS encrypted values) to store our secrets rather than using Jenkins Credentials. This is advised by our security team. I am able to fetch secrets (git username and password) as variables on Jenkins slaves, but not sure how to use those to *checkout*