日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > windows >内容正文

windows

window中搭建jenkins_Windows环境中的jenkins构建时报错

發布時間:2025/3/19 windows 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 window中搭建jenkins_Windows环境中的jenkins构建时报错 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

按照第三章的講解進行安裝配置后,最后嘗試連接進行驗證時,可以走通。但是到第五章實際實現自動化部署任務時,按照課程的講解配置完后,構建時報錯:Started?by?user?adminRunning?as?SYSTEM

[EnvInject]?-?Loading?node?environment?variables.

Building?remotely?on?TestEnv?in?workspace?/root/.jenkins/workspace/DeployOder

>?/usr/bin/git?rev-parse?--is-inside-work-tree?#?timeout=10

Fetching?changes?from?the?remote?Git?repository

>?/usr/bin/git?config?remote.origin.url?git@github.com:mengcan624/order.git?#?timeout=10

Fetching?upstream?changes?from?git@github.com:mengcan624/order.git

>?/usr/bin/git?--version?#?timeout=10

>?/usr/bin/git?fetch?--tags?--progress?git@github.com:mengcan624/order.git?+refs/heads/*:refs/remotes/origin/*?#?timeout=10

ERROR:?Error?fetching?remote?repo?'origin'

hudson.plugins.git.GitException:?Failed?to?fetch?from?git@github.com:mengcan624/order.git

at?hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:888)

at?hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1155)

at?hudson.plugins.git.GitSCM.checkout(GitSCM.java:1186)

at?hudson.scm.SCM.checkout(SCM.java:505)

at?hudson.model.AbstractProject.checkout(AbstractProject.java:1205)

at?hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)

at?jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)

at?hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)

at?hudson.model.Run.execute(Run.java:1853)

at?hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)

at?hudson.model.ResourceController.execute(ResourceController.java:97)

at?hudson.model.Executor.run(Executor.java:427)

Caused?by:?hudson.plugins.git.GitException:?Command?"/usr/bin/git?fetch?--tags?--progress?git@github.com:mengcan624/order.git?+refs/heads/*:refs/remotes/origin/*"?returned?status?code?128:

stdout:

stderr:?Host?key?verification?failed.

fatal:?The?remote?end?hung?up?unexpectedly

at?org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2430)

at?org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2044)

at?org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:81)

at?org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:569)

at?org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:161)

at?org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:154)

at?hudson.remoting.UserRequest.perform(UserRequest.java:211)

at?hudson.remoting.UserRequest.perform(UserRequest.java:54)

at?hudson.remoting.Request$2.run(Request.java:369)

at?hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)

at?java.util.concurrent.FutureTask.run(FutureTask.java:266)

at?java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at?java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at?java.lang.Thread.run(Thread.java:748)

Suppressed:?hudson.remoting.Channel$CallSiteStackTrace:?Remote?call?to?TestEnv

at?hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)

at?hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)

at?hudson.remoting.Channel.call(Channel.java:955)

at?org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:146)

at?sun.reflect.NativeMethodAccessorImpl.invoke0(Native?Method)

at?sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at?sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at?java.lang.reflect.Method.invoke(Method.java:498)

at?org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:132)

at?com.sun.proxy.$Proxy159.execute(Unknown?Source)

at?hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:886)

at?hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1155)

at?hudson.plugins.git.GitSCM.checkout(GitSCM.java:1186)

at?hudson.scm.SCM.checkout(SCM.java:505)

at?hudson.model.AbstractProject.checkout(AbstractProject.java:1205)

at?hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)

at?jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)

at?hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)

at?hudson.model.Run.execute(Run.java:1853)

at?hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)

at?hudson.model.ResourceController.execute(ResourceController.java:97)

at?hudson.model.Executor.run(Executor.java:427)

ERROR:?Error?fetching?remote?repo?'origin'

Finished:?FAILURE

本人jenkins是安裝部署到windows環境的,訪問虛擬機中的Linux環境,虛擬機中的git以及本地中的Git的公鑰也都配置在了github上,還是報錯,求解~~~急~~~~~~

總結

以上是生活随笔為你收集整理的window中搭建jenkins_Windows环境中的jenkins构建时报错的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。