我是一个Jenkins的相对新手,并且试图从存储在Bitbucket上的代码简单地运行构建。我正在使用git。我已经安装了作业源控制,HTTPS协议为: 网址:https://[email protected]/myaccount/myrepo.git 凭证:用户名/密码Jenkins:错误:获取远程回购'起源'的错误
的“构建”部分指向根pom.xml中并运行干净的测试行家目标
我有Git插件2.5.2
我正在运行Jenkins作为Windows服务(Windows 10)。
建设项目的错误是
ERROR: Timeout after 10 minutes
git.exe config --local --remove-section credential # timeout=10 ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from https://[email protected]/username/myrepo.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:799) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1055) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1086) at hudson.scm.SCM.checkout(SCM.java:495) at hudson.model.AbstractProject.checkout(AbstractProject.java:1270) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529) at hudson.model.Run.execute(Run.java:1720) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:404) Caused by: hudson.plugins.git.GitException: Command "git.exe -c core.askpass=true fetch --tags --progress https://[email protected]/username/myrepo.git +refs/heads/:refs/remotes/origin/" returned status code -1:
任何意见,欢迎
这是极有可能的git尽管没有被允许(非交互的shell)需要密码,这是一个私人回购协议。您需要以某种方式以某种方式提供密码。 –
您是否能够在作业中的构建步骤中ping通bitbucket.org? –