Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 我无法在github的jenkins上建立工作_Java_Github_Jenkins - Fatal编程技术网

Java 我无法在github的jenkins上建立工作

Java 我无法在github的jenkins上建立工作,java,github,jenkins,Java,Github,Jenkins,我是詹金斯的新手,我想在詹金斯创造一份工作。我已经将我的项目推送到github,并向jenkins提供了github服务器的路径,但是当我尝试构建作业时,它显示了一个错误,无法获取构建…请帮助解决这个问题 这是我得到的一个例外--- 如果只需要从GitHub repo获取数据,则无需使用ssh(这需要使用适当的私有/公共ssh密钥才能正常工作) 使用https url,它不需要任何身份验证(用于拉取) ssh和Jenkins的问题是,Jenkins通常不会使用与设置ssh密钥的帐户相同的帐户。因

我是詹金斯的新手,我想在詹金斯创造一份工作。我已经将我的项目推送到github,并向jenkins提供了github服务器的路径,但是当我尝试构建作业时,它显示了一个错误,无法获取构建…请帮助解决这个问题

这是我得到的一个例外---


如果只需要从GitHub repo获取数据,则无需使用ssh(这需要使用适当的私有/公共ssh密钥才能正常工作)

使用https url,它不需要任何身份验证(用于拉取)


ssh和Jenkins的问题是,Jenkins通常不会使用与设置ssh密钥的帐户相同的帐户。因为拉取公共GitHub repo不需要身份验证,所以您最好跳过ssh并使用HTTPS。您将获得超时。请检查是否可以从您的计算机访问存储库。
Started by user anonymous
Building in workspace C:\Users\Rishi\.jenkins\jobs\Spring\workspace
 > git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git.exe config remote.origin.url git@github.com:rishi1020/SpringMVC # 
timeout=10
Fetching upstream changes from git@github.com:rishi1020/SpringMVC
 > git.exe --version # timeout=10
using GIT_SSH to set credentials 
 > git.exe -c core.askpass=true fetch --tags --progress git@github.com:rishi1020/SpringMVC +refs/heads/*:refs/remotes/origin/*
ERROR: Timeout after 10 minutes
ERROR: Error fetching remote repo 'origin'
 https://github.com/rishi1020/SpringMVC