Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Blocker
-
Resolution: Fixed
-
Component/s: git-client-plugin
-
Labels:
-
Environment:Jenkins v1.625.3
-
Similar Issues:
Description
I am using the Credential plugin for Jenkins, and I think I have detected a bug.
I am going to explain the steps I have followed .(sorry for my English
- First, I create the domain and exclude the path XXXX
- Second, I created the credentials for my user inside this domain
- Then, I configure the job, pasting the url repo.
- And the credentials show me jsanchra and None values. I guess the Credentials only should show None value, is that correct? Maybe I have a configuration mistake?
Attachments
Issue Links
- is related to
-
JENKINS-44773 User Scoped credentials are not used by the "git" pipeline step
-
- Closed
-
Code changed in jenkins
User: juan francisco sanchez
Path:
src/main/java/org/jenkinsci/plugins/gitclient/GitURIRequirementsBuilder.java
src/test/java/org/jenkinsci/plugins/gitclient/GitURIRequirementsBuilderTest.java
http://jenkins-ci.org/commit/git-client-plugin/a865e011e91050bc074b319f656436c3b7d88c13
Log:
JENKINS-43022- Honor git credential path exclusion and inclusionTests scp URL form in GitURIRequirementsBuilderTest
Adds assertions for path.getPath(), including incorrect relative scp path.
Credentials PathRequirement incorrectly converts relative path to
absolute path. Adapt the test to that error, since PathRequirement
is likely used in many other cases where the prefixing of a '/' to the
relative path is the expected and desired behavior.