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

GIT Parameter Plugin not using stored credentials

      JENKINS GIT parameter Plugin doesn't use stored credentials when Retrieving git references
      all i can see in GIT server is that no credentials are send when the JOB is build with parameters

      If the same Job is build without parameters, on the GIT server part you see that credentials are send ok, but if you configure the same JOB to use a GIT parameter, every time you run the JOB it shows "Retrieving git references" and nothing is recovered from the GIT server, I have tried with al parameter types; branches, tags,branch or tag and revision but same issue arise

          [JENKINS-28597] GIT Parameter Plugin not using stored credentials

          Bruno Lopes added a comment - - edited

          The same for me! I found an workaround. I used the ssh connection with git repository, and it worked like a charm!

          Bruno Lopes added a comment - - edited The same for me! I found an workaround. I used the ssh connection with git repository, and it worked like a charm!

          adrian vindel added a comment -

          Hi Bruno can you post your job configuration and the changes made?

          thanks

          adrian vindel added a comment - Hi Bruno can you post your job configuration and the changes made? thanks

          Bruno Lopes added a comment -

          Hi Adrian,

          In source code management I changed my Repository URL from something like https://GIT_URL/PROJECT/PROJECT.git to ssh://git@GIT_URL:PORT/PROJECT/PROJECT.git.
          In git parameter, I used the following configurations:

          Name: branch
          Description: branch to be tested
          Parameter type: Branch or tag
          Branch: */master
          Tag filter: *
          Tag sort mode: NONE
          Default Value: develop

          If you require further clarification, tell me.
          Thanks.

          Bruno Lopes added a comment - Hi Adrian, In source code management I changed my Repository URL from something like https://GIT_URL/PROJECT/PROJECT.git to ssh://git@GIT_URL:PORT/PROJECT/PROJECT.git. In git parameter, I used the following configurations: Name: branch Description: branch to be tested Parameter type: Branch or tag Branch: */master Tag filter: * Tag sort mode: NONE Default Value: develop If you require further clarification, tell me. Thanks.

          adrian vindel added a comment -

          Thanks Bruno, but with that config it still doesn't work for me.

          adrian vindel added a comment - Thanks Bruno, but with that config it still doesn't work for me.

          Nikolas Falco added a comment -

          Me too.
          We have a job that clone a github repository using configured user credentials. The job works like a sharm. Now we would configure the job with GIT Parameter plugin to use a tag or a branch, when I try to launch a build, it remains on "Retrieving Git references..."

          Nikolas Falco added a comment - Me too. We have a job that clone a github repository using configured user credentials. The job works like a sharm. Now we would configure the job with GIT Parameter plugin to use a tag or a branch, when I try to launch a build, it remains on "Retrieving Git references..."

          Bruno Lopes added a comment -

          Did you configured the ssh key in your jenkins server? And which version of Jenkins are you using? I'm using version 1.620.

          Bruno Lopes added a comment - Did you configured the ssh key in your jenkins server? And which version of Jenkins are you using? I'm using version 1.620.

          adrian vindel added a comment -

          Hi Bruno I think that you are not using configured user credentials, right?I mean you just configure ssh keys (user running CI server, tomcat user--> git server) between servers.

          adrian vindel added a comment - Hi Bruno I think that you are not using configured user credentials, right?I mean you just configure ssh keys (user running CI server, tomcat user--> git server) between servers.

          Nikolas Falco added a comment - - edited

          Yes Bruno, but it should not use any the SSH key on jenkins server. I expect it use the credential plugin to access repositories as the git plugin do to download source code.
          The goal have a working a job without setup any SSH key configuration on all jenkins nodes. The credential plugin is great for that.

          Jenkins version 1.596.2

          Nikolas Falco added a comment - - edited Yes Bruno, but it should not use any the SSH key on jenkins server. I expect it use the credential plugin to access repositories as the git plugin do to download source code. The goal have a working a job without setup any SSH key configuration on all jenkins nodes. The credential plugin is great for that. Jenkins version 1.596.2

          I have the same Problem. We use Microsoft TFS (No ssh support!).

          Christian Häussler added a comment - I have the same Problem. We use Microsoft TFS (No ssh support!).

          I close this issue because

          • Plugin not store any credentials, plugin using the SCM define form project
          • It's very old issue perhaps is no longer valid

          Boguslaw Klimas added a comment - I close this issue because Plugin not store any credentials, plugin using the SCM define form project It's very old issue perhaps is no longer valid

            klimas7 Boguslaw Klimas
            adrianv adrian vindel
            Votes:
            9 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: