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

'Use Repository' setting does not find other remote urls if multiple repos are added to job

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: git-parameter-plugin
    • Labels:
      None
    • Environment:
      ubuntu 14.04
      java version "1.8.0_131"
      jenkins 2.60.1
      git-parameter-plugin 0.8.0
    • Similar Issues:

      Description

      If I add 2 git repositories to my job, and then add two git parameter instances (to list the branches from each repo) and set the 'Use Repository' setting to regex to identify each repo, only the first repo is resolved. The 2nd repo shows the 'No git repository is configured in the scm' error.

      I am not using the multi scm plugin, I just added two repos to the job.

      This had been working before I upgraded to the latest version, I think because I had named the two remotes, and then each git parameter instance was filtered to show only the branches from the specific remote.

        Attachments

          Activity

          matty666 Matt Evans created issue -
          klimas7 Boguslaw Klimas made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: klimas7
          Path:
          src/main/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinition.java
          src/main/java/net/uaznia/lukanus/hudson/plugins/gitparameter/scms/SCMFactory.java
          src/test/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinitionTest.java
          http://jenkins-ci.org/commit/git-parameter-plugin/c262a4f11c4857dc4a228e36c4f9483c1fad3001
          Log:
          JENKINS-45419

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: klimas7 Path: src/main/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinition.java src/main/java/net/uaznia/lukanus/hudson/plugins/gitparameter/scms/SCMFactory.java src/test/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinitionTest.java http://jenkins-ci.org/commit/git-parameter-plugin/c262a4f11c4857dc4a228e36c4f9483c1fad3001 Log: JENKINS-45419
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Boguslaw Klimas
          Path:
          src/main/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinition.java
          src/main/java/net/uaznia/lukanus/hudson/plugins/gitparameter/scms/SCMFactory.java
          src/test/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinitionTest.java
          http://jenkins-ci.org/commit/git-parameter-plugin/5c009d9e6b89746056ed9f29ea43589c725a10d4
          Log:
          Merge pull request #58 from jenkinsci/feature/JENKINS-45419

          JENKINS-45419

          Compare: https://github.com/jenkinsci/git-parameter-plugin/compare/a7d90cf52948...5c009d9e6b89

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Boguslaw Klimas Path: src/main/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinition.java src/main/java/net/uaznia/lukanus/hudson/plugins/gitparameter/scms/SCMFactory.java src/test/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinitionTest.java http://jenkins-ci.org/commit/git-parameter-plugin/5c009d9e6b89746056ed9f29ea43589c725a10d4 Log: Merge pull request #58 from jenkinsci/feature/ JENKINS-45419 JENKINS-45419 Compare: https://github.com/jenkinsci/git-parameter-plugin/compare/a7d90cf52948...5c009d9e6b89
          Hide
          klimas7 Boguslaw Klimas added a comment -

          Resolved in version 0.9.1

          Show
          klimas7 Boguslaw Klimas added a comment - Resolved in version 0.9.1
          klimas7 Boguslaw Klimas made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          duffer007 Viktor Utkin added a comment - - edited

          Now it shows duplicates for first repo (I have two in one pipeline) if I filled it in field "Use repository"

           

          Show
          duffer007 Viktor Utkin added a comment - - edited Now it shows duplicates for first repo (I have two in one pipeline) if I filled it in field "Use repository"  
          duffer007 Viktor Utkin made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          maxgio92 Massimiliano Giovagnoli made changes -
          Comment [ The problem still persists with 0.9.3 version.

          With an SCM repository configured for pipeline script only, is not possible to select the branch for the application repository set in "Use Repository" advanced option of Git parameter. ]
          Hide
          shawn1874 Shawn Fox added a comment -

          Could someone explain how it is supposed to work?  I think I am having the same issue with the latest plugin.  It seems to get all of the branches from one of the repositories each time or gives the no git repository configured error.

          Show
          shawn1874 Shawn Fox added a comment - Could someone explain how it is supposed to work?  I think I am having the same issue with the latest plugin.  It seems to get all of the branches from one of the repositories each time or gives the no git repository configured error.
          klimas7 Boguslaw Klimas made changes -
          Status Reopened [ 4 ] In Progress [ 3 ]
          Hide
          klimas7 Boguslaw Klimas added a comment -

          I released plugin version 0.9.5 and I've updated the wiki page.

          Please look on section https://wiki.jenkins.io/display/JENKINS/Git+Parameter+Plugin#GitParameterPlugin-Userepository

          Show
          klimas7 Boguslaw Klimas added a comment - I released plugin version 0.9.5 and I've updated the wiki page. Please look on section  https://wiki.jenkins.io/display/JENKINS/Git+Parameter+Plugin#GitParameterPlugin-Userepository
          Hide
          klimas7 Boguslaw Klimas added a comment -

          release 0.9.5

          Show
          klimas7 Boguslaw Klimas added a comment - release 0.9.5
          klimas7 Boguslaw Klimas made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              klimas7 Boguslaw Klimas
              Reporter:
              matty666 Matt Evans
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: