Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.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
Github Jenkins为maven构建的项目失败了_Github_Jenkins Pipeline - Fatal编程技术网

Github Jenkins为maven构建的项目失败了

Github Jenkins为maven构建的项目失败了,github,jenkins-pipeline,Github,Jenkins Pipeline,我创建了一个公共存储库“microservices”,并创建了一个作业来从github管道化构建,当我试图构建时,出现了以下错误 Fetching upstream changes from https://github.com/karthiksuresh6666/microservices/new/master > C:\Program Files\Git\mingw64\bin\git.exe --version # timeout=10 > C:\Program Files

我创建了一个公共存储库“microservices”,并创建了一个作业来从github管道化构建,当我试图构建时,出现了以下错误

Fetching upstream changes from https://github.com/karthiksuresh6666/microservices/new/master
 > C:\Program Files\Git\mingw64\bin\git.exe --version # timeout=10
 > C:\Program Files\Git\mingw64\bin\git.exe fetch --tags --progress https://github.com/karthiksuresh6666/microservices/new/master +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from https://github.com/karthiksuresh6666/microservices/new/master
    at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:894)
    at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1161)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1192)
    at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:124)
    at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:93)
    at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:80)
    at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: hudson.plugins.git.GitException: Command "C:\Program Files\Git\mingw64\bin\git.exe fetch --tags --progress https://github.com/karthiksuresh6666/microservices/new/master +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: fatal: unable to update url base from redirection:
  asked for: https://github.com/karthiksuresh6666/microservices/new/master/info/refs?service=git-upload-pack
   redirect: https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fkarthiksuresh6666%2Fmicroservices%2Fnew%2Fmaster%2Finfo%2Frefs%3Fservice%3Dgit-upload-pack
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2042)
从远程获取时,它会被重定向到登录页面,是否有任何方法可以设置我的github凭据,或者我在这里做错了什么。

因为github不应该要求您进行身份验证

尝试使用远程存储库URL
(而不是)

因为GitHub不应该要求您进行身份验证

尝试使用远程存储库URL
(代替)