Discussion:
to get the code from the git
r***@ithands.biz
2018-10-16 09:16:48 UTC
Permalink
hi team
i need to get the code from git this is what i have done so far

node {
stage('preperation')
git branch: 'master',
git 'https://github.com/robert-rajendra/test.git'


}

this is a public and what if i want to get the code from a private repo
with the help of ssh keys


Please help me out here
Thank you
--
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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/a2557ebd-4ebd-4a6d-8cc4-739330a4a586%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ramanathan Muthaiah
2018-10-16 10:00:00 UTC
Permalink
Post by r***@ithands.biz
hi team
i need to get the code from git this is what i have done so far
node {
stage('preperation')
git branch: 'master',
git 'https://github.com/robert-rajendra/test.git'
}
this is a public and what if i want to get the code from a private repo
with the help of ssh keys
Google search returned this,
https://stackoverflow.com/questions/52776964/proper-way-for-handling-ssh-keys-to-clone-private-repos

BTW, check out this for examples on various steps, including using git,
https://github.com/jenkinsci/pipeline-examples/tree/master/pipeline-examples


/Ram
--
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+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/f77f35b2-e727-4502-8346-43e757d155a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...