简体   繁体   English

使用 Jenkins 端到端多分支管道项目创建时出现 Git 凭证问题

[英]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.错误图片 - Git 凭据验证失败,出现意外错误。 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.在为 Jenkins 处理初始端到端多分支管道项目创建项目时,它在连接到本地 /home/user_name/GitHub/building-a-multibranch-pipeline-project 以访问本地 git 文件时要求提供凭据. I have tried an array of different approaches form providing my system credentials to my git credentials but nothing seems to work.我尝试了一系列不同的方法,将我的系统凭据提供给我的 git 凭据,但似乎没有任何效果。

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:检查使用文件协议作为 URL 是否足以说服 Jenkins 及其不需要用户名/密码的凭据插件:

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

The idea is: for local file-based access, there is no authentication with Git.这个想法是:对于基于本地文件的访问,Git 没有身份验证。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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