[Solved] Jenkins-ERROR: Error cloning remote repo ‘origin‘

In the process of Jenkins building Maven project, the configuration source code management reports an error:

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

refs/heads/*: refs/remotes/origin/* "returned status code 128: stdout: stderr: fatal: unable to access
GitHub account password verification cannot be used:
Solution: add a global certificate and use it in project configuration -> source management ->Use this voucher

Build again:

install Jenkins command under docker (Mount: Java and Maven) pay attention to the host directory

docker run -d -p 8089:8080 -p 8090:50000 -v /usr/local/jenkins:/var/jenkins_home -v /usr/local/jdk:/usr/local/java -v /usr/local/dev/apache-maven-3.6.3:/usr/local/maven -v /etc/localtime:/etc/localtime --name myjenkins jenkins/jenkins:lts

Read More: