What Antonio said, or also see https://www.cloudbees.com/blog/jenkins-workflow-using-global-library-implement-re-usable-function-call-secured-http-endpoint which is a part of the pipeline suite.
On Thu, Apr 28, 2016 at 3:15 PM Jeeva Chelladhurai <[email protected]> wrote: > Hello All, > > I am planning to organize my source code in one github repository, and the > Jenkinsfile and the configuration/topology file in a different github > repository.. Would it be possible to clone/check out the remote repository > using my Jenkinsfile? I tried something as show below but it does not seem > to be working... Your help is greatly appreciated .. > > node ('docker') { > stage "SCM Synch" > checkout scm > > stage "Main Src" > git url: 'https://github.com/<id>/<repo>.git' > checkout scm > > stage "Next Stage" > sh "echo yet to write" > > } > > > > Thanks, > Jeeva > > -- > 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/46730175-e8d4-4d68-aadf-16fb3e170ea7%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/46730175-e8d4-4d68-aadf-16fb3e170ea7%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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAN4CQ4w91ySyHGr64PURQHJzcjuE2SzF_%3DBYkfhi-9cN%2Bic8Hg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
