0

When I try to execute my automation scrip in Jenkins, I'm getting following error. I have added my access token in windows credential manager. But still I face same issue.

Also I set Additional Behaviours below source-code-management to Wipe out repository & force clone.

Started by user
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building in workspace /var/jenkins_home/workspace/testAutomation
The recommended git tool is: NONE
No credentials specified
Wiping out workspace first.
Cloning the remote Git repository
Cloning repository <URL>
 > git init /var/jenkins_home/workspace/testAutomation # timeout=10
Fetching upstream changes from <URL>
 > git --version # timeout=10
 > git --version # 'git version 2.30.2'
 > git fetch --tags --force --progress -- <URL> +refs/heads/*:refs/remotes/origin/* # timeout=10
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "git fetch --tags --force --progress -- <URL> +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-asasasaauthentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for '<URL>/'

    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2671)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2096)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:618)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:847)
    at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1216)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1294)
    at hudson.scm.SCM.checkout(SCM.java:540)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1215)
    at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:645)
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:85)
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:517)
    at hudson.model.Run.execute(Run.java:1896)
    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
    at hudson.model.ResourceController.execute(ResourceController.java:101)
    at hudson.model.Executor.run(Executor.java:442)
ERROR: Error cloning remote repo 'origin'
[htmlpublisher] Archiving HTML reports...
TestNG Reports Processing: START
Looking for TestNG results report in workspace using pattern: **/testng-results.xml
Did not find any matching files.
[Checks API] No suitable checks publisher found.
Finished: FAILURE
    Workspace
    Recent Changes
Permalinks
Last build (#6), 10 min ago
Last failed build (#6), 10 min ago
Last unsuccessful build (#6), 10 min ago
Last completed build (#6), 10 min ago
  • Is this your issue https://stackoverflow.com/questions/28366424/jenkins-does-not-detect-git-credentials-from-windows-credential-manager – ycr Jun 13 '22 at 18:05

0 Answers0