Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33584

git-parameter-plugin cannot fetch tags from other repositories

      It seems that git-parameter-plugin cannot fetch tags from other repositories, meaning that if you want to create a deployment job in jenkins you cannot really do it because the repository that you are checking out is usually the utils/devops one and not the one that you want to deploy.

      Current implementation limits our options considerably. Maybe someone knows a workaround that works with GitHub API?

          [JENKINS-33584] git-parameter-plugin cannot fetch tags from other repositories

          Boguslaw Klimas added a comment - - edited

          Hi Sorin,

          You want to get only branch list or tags list but You don't want checking out repository, am I right?
          If so, this is one of the things that I want to improve in one of the next releases.

          Is not that same as JENKINS-16290?

          Regard
          Boguslaw Klimas

          Boguslaw Klimas added a comment - - edited Hi Sorin, You want to get only branch list or tags list but You don't want checking out repository, am I right? If so, this is one of the things that I want to improve in one of the next releases. Is not that same as JENKINS-16290 ? Regard Boguslaw Klimas

          I have a kind of similar problem, we are using the Multiple SCMs Plugin since we need to build using several repositories. And we do need to list tags from all of them.

          What about using a strategy similar to the subversion plugin where for each parameter entry you add the repo path/url per parameter ? Maybe it could then do a remote list if the repo is not yet cloned and fetch locally if it's already cloned. It would also avoid the annoyance of having to build once before anything get listed.

          For now I think have to resort to enter the info manually, but it would be great if this plugin could do it

          Daniel Bengtsson added a comment - I have a kind of similar problem, we are using the Multiple SCMs Plugin since we need to build using several repositories. And we do need to list tags from all of them. What about using a strategy similar to the subversion plugin where for each parameter entry you add the repo path/url per parameter ? Maybe it could then do a remote list if the repo is not yet cloned and fetch locally if it's already cloned. It would also avoid the annoyance of having to build once before anything get listed. For now I think have to resort to enter the info manually, but it would be great if this plugin could do it

          Hi @zitrax,
          Problem "You must first trigger a build if your workspace is empty. The list to choose from will be empty." I have fixed locally and testing it. In the next release I will push this fix in repository.
          "And we do need to list tags from all of them." All tags on one list?
          In java code It is selected, only the first repository.

          Boguslaw Klimas added a comment - Hi @ zitrax , Problem "You must first trigger a build if your workspace is empty. The list to choose from will be empty." I have fixed locally and testing it. In the next release I will push this fix in repository. "And we do need to list tags from all of them." All tags on one list? In java code It is selected, only the first repository.

          In the next release I will push this fix in repository.

          Great, thanks.

          All tags on one list?

          Basically our build process has a job that requires several components all coming from different repositories. So for the parameterized build job we need to select tag per repo something like:

          • Repo A: Tag x
          • Repo B: Tag y

          So for one parameter we need to select among all tags on repo A, for the next among all tags on repo B.

          Daniel Bengtsson added a comment - In the next release I will push this fix in repository. Great, thanks. All tags on one list? Basically our build process has a job that requires several components all coming from different repositories. So for the parameterized build job we need to select tag per repo something like: Repo A: Tag x Repo B: Tag y So for one parameter we need to select among all tags on repo A, for the next among all tags on repo B.

            klimas7 Boguslaw Klimas
            ssbarnea Sorin Sbarnea
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: