If you need to clone two repositories and can't get the branch names from a git parameter, you could use a string parameter and list the choice of branches yourself. Or, you could experiment with the git parameter plugin to see if you can find a way to resolve the issue that you're seeing.
On Tue, Mar 3, 2020 at 8:41 AM judaondo <[email protected]> wrote: > Hello Mark, > > I need to clone 2 repositories, so I can´t place the Jenkinsfile in one > repository or another. > > I need to place the code directly in the Jenkinsfile inside the job. > > The thing is that branches are not loaded in the git paramater. > > Is there any workaround to fix this? > > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/649378a4-fc37-4d17-ab7a-5916996a629f%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/649378a4-fc37-4d17-ab7a-5916996a629f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAO49JtEktGjrDxph6b_DgNb4Ft%3D2hdqiwiV31WabpGBK8nMx%3DA%40mail.gmail.com.
