简体   繁体   中英

Git credential issue when working with Jenkins End-to-End Multibranch Pipeline Project Creation

Image of Error - Git credential validation failed with an unexpected error. Please try again

When working on the initial End-to-End Multibranch Pipeline Project Creation project for Jenkins, it is asking for credentials when connecting to the local /home/user_name/GitHub/building-a-multibranch-pipeline-project to access the local git files. I have tried an array of different approaches form providing my system credentials to my git credentials but nothing seems to work.

The workflow for this project is as follows:

I realize this is probably a very simple problem, but I greatly appreciate any help.
 --rm \ -u root \ -p 8080:8080 \ -v jenkins-data:/var/jenkins_home \ -v /var/run/docker.sock:/var/run/docker.sock \ -v "$HOME":/home \ jenkinsci/blueocean

Check if using the file protocol as an URL would be enough to convince Jenkins and its Credential plugin that is does not need username/password:

file:///home/GitHub/building-a-multibranch-project

The idea is: for local file-based access, there is no authentication with Git.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM