Tôi mới đến Jenkins
, tôi nhận được lỗi sau khi nhân bản kho lưu trữ từ GitHub
.Jenkins cho lỗi trong khi nhân bản từ gitHub
Tôi đã cố gắng tìm kiếm tất cả các vấn đề có liên quan ở đây nhưng có thể tìm chính xác stacktstrace với câu trả lời.
Tôi đang cố gắng sao chép kho lưu trữ yêu cầu tên người dùng và mật khẩu, tôi đang cung cấp SSH://
đường dẫn lưu trữ trong cài đặt cấu hình công việc cho công việc của mình. Tôi chưa thực hiện bất kỳ cài đặt liên quan .ssh nào vì đây dường như là vấn đề khác với vấn đề bảo mật với kho GIT.
Tôi không thể tìm ra lời bình luận mà Jenkins đang cố gắng thực hiện, tập tin/thư mục nào không tìm thấy dấu vết.
Đây là chính xác stack trace của tôi từ Jenkins công việc:
Caused by: java.io.IOException: Cannot run program: Error trying to determine the git version: Error performing command: --version Assuming 1.6 ERROR: Error cloning remote repo 'myRE' : Could not clone [email protected]:myORG/RVL.myProj.git hudson.plugins.git.GitException: Could not clone [email protected]:myORG/RVL.myProj.git at hudson.plugins.git.GitAPI.clone(GitAPI.java:268) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1122) at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:1064) at hudson.FilePath.act(FilePath.java:842) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1064) at hudson.model.AbstractProject.checkout(AbstractProject.java:1256) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:589) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:494) at hudson.model.Run.execute(Run.java:1502) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: hudson.plugins.git.GitException: Error performing command: clone -o RVL.myProj [email protected]:myORG/RVL.myProj.git /var/lib/jenkins/jobs/myProj/workspace at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:862) at hudson.plugins.git.GitAPI.access$000(GitAPI.java:40) at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:264) at hudson.plugins.git.GitAPI$1.invoke(GitAPI.java:244) at hudson.FilePath.act(FilePath.java:842) at hudson.FilePath.act(FilePath.java:824) at hudson.plugins.git.GitAPI.clone(GitAPI.java:244) ... 13 more Caused by: java.io.IOException: Cannot run program "": error=2, No such file or directory at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.(Proc.java:244) at hudson.Proc$LocalProc.(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:709) at hudson.Launcher$ProcStarter.start(Launcher.java:338) at hudson.Launcher$ProcStarter.join(Launcher.java:345) at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:843) ... 19 more Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.(Unknown Source) at java.lang.Pro
Điều gì sẽ xảy ra nếu bạn nhập "git --version" tại dòng lệnh trên trình chủ Jenkins? Có vẻ như bạn chưa cài đặt git. – CIGuy
Có vẻ như đã xảy ra sự cố trong cấu hình GIT của Jenkins, đã cung cấp đường dẫn đầy đủ của GIT thay vì chỉ "git" (đề xuất bởi jenkins) – Kaunteya