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

    Details

    • Similar Issues:

      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 ]
          Hide
          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?

          Show
          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?
          Hide
          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

          Show
          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
          Hide
          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

          Show
          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 -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          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

          Show
          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
          Hide
          markewaite Mark Waite added a comment -

          Fixed in git plugin 2.2.3, released 31 July 2014

          Show
          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 ]
          Hide
          markewaite Mark Waite added a comment -

          Fix included in git plugin 2.3.1, released 29 Nov 2014

          Show
          markewaite Mark Waite added a comment - Fix included in git plugin 2.3.1, released 29 Nov 2014
          Hide
          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

          Show
          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

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

              Dates

              • Created:
                Updated:
                Resolved: