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

The git plugin is not working correctly when the repository url has job parameter and any repository credentials

    XMLWordPrintable

Details

    Description

      When I configured a job with one job parameter as part of git repository url, I got authentication error like that:

      stdout:
      stderr: Permission denied (publickey).
      fatal: Could not read from remote repository.

      Please make sure you have the correct access rights
      and the repository exists.

      Attachments

        Activity

          elvysborges elvys borges created issue -
          elvysborges elvys borges made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          elvysborges elvys borges made changes -
          Summary The git plugin is not working correctly when the repository url has job parameter The git plugin is not working correctly when the repository url has job parameter and any repository credentials
          elvysborges elvys borges made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          elvysborges elvys borges made changes -
          Status Open [ 1 ] In Progress [ 3 ]

          Do we know what the most recent version is where this feature is working? I see the pull request for this bug on Github. Is there an anticipated date when this will be released?

          moeglewa William Moeglein added a comment - Do we know what the most recent version is where this feature is working? I see the pull request for this bug on Github. Is there an anticipated date when this will be released?
          elvysborges elvys borges added a comment -

          Hi Willian,
          I had this problem, fix and sent the pull request. I don't know the release date with this fix. I'm a advanced user of Jenkins without experience in open source development.
          If it is critical to you, I could sent my compiled git-plugin.hpi to you.
          Best regards,
          Elvys

          elvysborges elvys borges added a comment - Hi Willian, I had this problem, fix and sent the pull request. I don't know the release date with this fix. I'm a advanced user of Jenkins without experience in open source development. If it is critical to you, I could sent my compiled git-plugin.hpi to you. Best regards, Elvys

          Code changed in jenkins
          User: Elvys Borges
          Path:
          src/main/java/hudson/plugins/git/GitSCM.java
          http://jenkins-ci.org/commit/git-plugin/7fbd682693f143b628e16e5776d5e8e4b7590b6f
          Log:
          [FIXED JENKINS-23675] Expand parameters on repository url before associate one url to one credential

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Elvys Borges Path: src/main/java/hudson/plugins/git/GitSCM.java http://jenkins-ci.org/commit/git-plugin/7fbd682693f143b628e16e5776d5e8e4b7590b6f Log: [FIXED JENKINS-23675] Expand parameters on repository url before associate one url to one credential
          scm_issue_link SCM/JIRA link daemon made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]

          Code changed in jenkins
          User: Nicolas De loof
          Path:
          src/main/java/hudson/plugins/git/GitSCM.java
          http://jenkins-ci.org/commit/git-plugin/397646b8034e63f1d6f8c783e9fd3a9df16c57a4
          Log:
          Merge pull request #239 from elvysborges/2.2.x

          [FIXED JENKINS-23675] Expand parameters on repository url

          Compare: https://github.com/jenkinsci/git-plugin/compare/b3c63a02b4af...397646b8034e

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De loof Path: src/main/java/hudson/plugins/git/GitSCM.java http://jenkins-ci.org/commit/git-plugin/397646b8034e63f1d6f8c783e9fd3a9df16c57a4 Log: Merge pull request #239 from elvysborges/2.2.x [FIXED JENKINS-23675] Expand parameters on repository url Compare: https://github.com/jenkinsci/git-plugin/compare/b3c63a02b4af...397646b8034e
          markewaite Mark Waite added a comment -

          Fixed in git plugin 2.2.3, released 31 July 2014

          markewaite Mark Waite added a comment - Fixed in git plugin 2.2.3, released 31 July 2014
          markewaite Mark Waite made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          markewaite Mark Waite added a comment -

          Fix included in git plugin 2.3.1, released 29 Nov 2014

          markewaite Mark Waite added a comment - Fix included in git plugin 2.3.1, released 29 Nov 2014

          Code changed in jenkins
          User: Elvys Borges
          Path:
          src/main/java/hudson/plugins/git/GitSCM.java
          http://jenkins-ci.org/commit/git-plugin/988c4d10cb09133673631e33190897c895e59cf7
          Log:
          [FIXED JENKINS-23675] Expand parameters on repository url before associate one url to one credential

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Elvys Borges Path: src/main/java/hudson/plugins/git/GitSCM.java http://jenkins-ci.org/commit/git-plugin/988c4d10cb09133673631e33190897c895e59cf7 Log: [FIXED JENKINS-23675] Expand parameters on repository url before associate one url to one credential
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 156460 ] JNJira + In-Review [ 207827 ]

          People

            elvysborges elvys borges
            elvysborges elvys borges
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: