Tôi đã thử tất cả mọi thứ khác nhau và tôi không thể có được jenkins để chơi đẹp với git.Plugin Jenkins Git - 401
Tôi đã thiết lập khóa ssh của mình và xác minh rằng tôi có thể ssh tới trung tâm git và tôi nhận được thông báo. Tôi cũng đã thử sử dụng phần mở rộng .git. Tôi đã thử với tên người dùng trong url, tên người dùng và mật khẩu trong url, và không có tên người dùng/passsord cả. Không có vấn đề gì.
Tôi cũng đã thử nó với người dùng quản trị và người dùng push/pull đơn giản.
Kho lưu trữ git mà tôi đang cố gắng truy cập thông qua "tổ chức" nhưng tôi thuộc nhóm có quyền truy cập.
Cloning repository origin
ERROR: Error cloning remote repo 'origin' : Could not clone https://github.com/xxx/xx
hudson.plugins.git.GitException: Could not clone https://github.com/xxx/xx
at hudson.plugins.git.GitAPI.clone(GitAPI.java:245)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1073)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1014)
at hudson.FilePath.act(FilePath.java:788)
at hudson.FilePath.act(FilePath.java:770)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1014)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1195)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:579)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:468)
at hudson.model.Run.run(Run.java:1408)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:478)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:238)
Caused by: hudson.plugins.git.GitException: Error performing command: git clone --progress -o origin https://github.com/xxxx/xx /var/lib/jenkins/jobs/test/workspace
Command "git clone --progress -o origin https://github.com/xxxx/xx /var/lib/jenkins/jobs/test/workspace" returned status code 128: Initialized empty Git repository in /var/lib/jenkins/jobs/test/workspace/.git/
error: The requested URL returned error: 401 while accessing https://github.com/xxxx/xx/info/refs
Có một repo tư nhân? – iltempo
có nó là một repo tư nhân –