jenkinsci / jenkinsci/git-plugin

[JENKINS-62704] Jenkins agents can't make git pull if bitbucket password contains skandinavian characters

Open
#3,571 4 comments 0 reactions 0 assignees View on GitHub
component:credentials-plugin component:git-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

Jenkins ver. 2.126

When following kind of password was configured to Bitbucket (Crowd):  Kesäalkoi123%

Jenkins agents can't make git clone etc:

 

 

Started by user XXXXXXXStarted by user XXXXXXXBuilding remotely on Windows_10 in workspace C:\Jenkins\workspace\xxxxxx > C:\Program Files\Git\mingw64\bin\git rev-parse --is-inside-work-tree # timeout=10Fetching changes from the remote Git repository > C:\Program Files\Git\mingw64\bin\git config remote.origin.url https://testi.me.fi/stash/scm/ot/xxxxxx.git # timeout=10Fetching upstream changes from https://testi.me.fi/stash/scm/ot/xxxxxx.git > C:\Program Files\Git\mingw64\bin\git --version # timeout=10using GIT_ASKPASS to set credentials  > C:\Program Files\Git\mingw64\bin\git fetch --tags --progress https://testi.me.fi/stash/scm/ot/xxxxxxn.git +refs/heads/:refs/remotes/origin/*ERROR: Error fetching remote repo 'origin'hudson.plugins.git.GitException: Failed to fetch from https://testi.me.fi/stash/scm/ot/xxxxxx.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:862) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1129) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1160) at hudson.scm.SCM.checkout(SCM.java:504) at hudson.model.AbstractProject.checkout(AbstractProject.java:1208) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1794) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)Caused by: hudson.plugins.git.GitException: Command "C:\Program Files\Git\mingw64\bin\git fetch --tags --progress https://testi.me.fi/stash/scm/ot/xxxxxxn.git +refs/heads/:refs/remotes/origin/*" returned status code 128:stdout: stderr: error: cannot spawn sh: No such file or directoryerror: cannot spawn sh: No such file or directoryfatal: Authentication failed for 'https://testi.me.fi/stash/scm/ot/xxxxxx.git/'

 

And everything works fine if agents are not used  (Jenkins build is run locally on master)..

 

 

 

 

 

 

---
Originally reported by pete123, imported from: Jenkins agents can't make git pull if bitbucket password contains skandinavian characters


  • status: Open
  • priority: Major
  • component(s): credentials-plugin, git-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 3
  • imported: 2025-12-02

Raw content of original issue

Jenkins ver. 2.126

When following kind of password was configured to Bitbucket (Crowd):  Kesäalkoi123%

Jenkins agents can't make git clone etc:

 

 

Started by user XXXXXXXStarted by user XXXXXXXBuilding remotely on Windows_10 in workspace C:\Jenkins\workspace\xxxxxx > C:\Program Files\Git\mingw64\bin\git rev-parse --is-inside-work-tree # timeout=10Fetching changes from the remote Git repository > C:\Program Files\Git\mingw64\bin\git config remote.origin.url https://testi.me.fi/stash/scm/ot/xxxxxx.git # timeout=10Fetching upstream changes from https://testi.me.fi/stash/scm/ot/xxxxxx.git > C:\Program Files\Git\mingw64\bin\git --version # timeout=10using GIT_ASKPASS to set credentials  > C:\Program Files\Git\mingw64\bin\git fetch --tags --progress https://testi.me.fi/stash/scm/ot/xxxxxxn.git +refs/heads/:refs/remotes/origin/*ERROR: Error fetching remote repo 'origin'hudson.plugins.git.GitException: Failed to fetch from https://testi.me.fi/stash/scm/ot/xxxxxx.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:862) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1129) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1160) at hudson.scm.SCM.checkout(SCM.java:504) at hudson.model.AbstractProject.checkout(AbstractProject.java:1208) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1794) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)Caused by: hudson.plugins.git.GitException: Command "C:\Program Files\Git\mingw64\bin\git fetch --tags --progress https://testi.me.fi/stash/scm/ot/xxxxxxn.git +refs/heads/:refs/remotes/origin/*" returned status code 128:stdout: stderr: error: cannot spawn sh: No such file or directoryerror: cannot spawn sh: No such file or directoryfatal: Authentication failed for 'https://testi.me.fi/stash/scm/ot/xxxxxx.git/'

 

And everything works fine if agents are not used  (Jenkins build is run locally on master)..

 

 

 

 

 

 

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.