Re: SharedLibrary doesn´t allow git parameter to fetch all branches

2020-06-24 Thread Ganesan Srinivasan
Check this link https://plugins.jenkins.io/git-parameter/ Git parameter doesnt know from which repo(shared repo or project repo), it fetches the branch from shared repo. Follow the below steps to solve this issue If in the task are defined multiple repositories, this option specifies which the

Re: SharedLibrary doesn´t allow git parameter to fetch all branches

2020-03-03 Thread judaondo
Which plugins are those? Multibranch is this one: https://plugins.jenkins.io/workflow-multibranch/ and multipipeline plugin? 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

Re: SharedLibrary doesn´t allow git parameter to fetch all branches

2020-03-03 Thread vince bailey
Have you installed the multibranch and multipipeline plugins that will help. The other thing is were you want to set the git repo information in jenkins cred’s jenkins golbal or in the jenkinsfile don’t mix and match -- Regards, Vince Bailey Live long and prosper !!! > On 3 Mar 2020, at 16

Re: SharedLibrary doesn´t allow git parameter to fetch all branches

2020-03-03 Thread judaondo
Yes, finally I used "String parameter" but that was, what I was trying to avoid... I wanted to help anyone selecting their branch and not typing it. Thank you for your support :) -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe

Re: SharedLibrary doesn´t allow git parameter to fetch all branches

2020-03-03 Thread Mark Waite
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

Re: SharedLibrary doesn´t allow git parameter to fetch all branches

2020-03-03 Thread judaondo
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. --

Re: SharedLibrary doesn´t allow git parameter to fetch all branches

2020-02-21 Thread Mark Waite
I'd call it a misunderstanding more than an incompatibility. The git parameter is providing a filter which can *limit* the set of branches which might be included. The git parameter *cannot expand* the set of branches which might be included. The multibranch pipeline job definition controls

Re: SharedLibrary doesn´t allow git parameter to fetch all branches

2020-02-21 Thread judaondo
-- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com

SharedLibrary doesn´t allow git parameter to fetch all branches

2020-02-21 Thread judaondo
Hello, I have the following pipeline that uses a method called "getServiceVersion" from a Shared Library. #!/usr/bin/env groovy @Library('mycom') import com.mycom.* // Declarative pipeline // properties([[$class: 'JiraProjectProperty'], buildDiscarder(logRotator( artifactDaysToKeepStr: '',

SharedLibrary doesn´t allow git parameter to fetch all branches

2020-02-10 Thread judaondo
Hello, I have the following pipeline that uses a method called "getServiceVersion" from a Shared Library. #!/usr/bin/env groovy @Library('mycom') import com.mycom.* // Declarative pipeline // properties([[$class: 'JiraProjectProperty'], buildDiscarder(logRotator( artifactDaysToKeepStr: '',