詹金斯Git插件 [英] Jenkins Git Plugin

查看:133
本文介绍了詹金斯Git插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从gitHub存储库中为poc尝试Jenkins构建项目时,出现以下错误。詹金斯是本地安装,我使用https地址作为git,用户名和密码用于登录到GitHub。任何人都可以为我提供一些指针,因为我对Jenkins和GitHub都是新手。

falsedata-console =truedata-babel =false>

 在工作区中建立C:\程序文件(x86)\Jenkins\workspace\AdventureWorks2014  -  1. BuildCloning远程Git存储库克隆存储库https://github.com/h020905a/AdventureWorks2014.git> git.exe init C:\程序文件(x86)\Jenkins\workspace\AdventureWorks2014  -  1. Build#timeout = 10从https://github.com/h020905a/AdventureWorks2014.git获取上游更改> git.exe --version#timeout = 10使用GIT_ASKPASS设置凭证> git.exe fetch --tags --progress https://github.com/h020905a/AdventureWorks2014.git + refs / heads / *:refs / remotes / origin / *错误:错误克隆远程回购'origin'hudson.plugins。 git.GitException:错误在org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1793)在org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1513)在org.jenkinsci执行GIT中命令.plugins.gitclient.CliGitAPIImpl.access $ 300(CliGitAPIImpl.java:64)在org.jenkinsci.plugins.gitclient.CliGitAPIImpl $ 1.execute(CliGitAPIImpl.java:315)在org.jenkinsci.plugins.gitclient.CliGitAPIImpl $ 2.execute( CliGitAPIImpl.java:512)在hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1057)在hudson.plugins.git.GitSCM.checkout(GitSCM.java:1097)在hudson.scm.SCM.checkout(SCM .java:495)at hudson.model.AbstractProject.checkout(AbstractProject.java:1278)at hudson.model.AbstractBuild $ AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)at jenkins.s cm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)在hudson.model.AbstractBuild $ AbstractBuildExecution.run(AbstractBuild.java:529)在hudson.model.Run.execute(Run.java:1728)在hudson.model.FreeStyleBuild .RUN(FreeStyleBuild.java:43)在hudson.model.ResourceController.execute(ResourceController.java:98)在hudson.model.Executor.run(Executor.java:404)引起的:org.jvnet.winp.WinpException:失败在ENVVAR-cmdline.cpp读取RT_USER_PROCESS_PARAMETERS错误= 299:在org.jvnet在org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:126)151在org.jvnet.winp.Native.getCmdLineAndEnvVars(本机方法) .winp.WinProcess.getCommandLine(WinProcess.java:102)在hudson.util.ProcessTree $ WINDOWS $ 1.getArguments(ProcessTree.java:444)在hudson.plugins.msbuild.MsBuildKillingVeto.vetoProcessKilling(MsBuildKillingVeto.java:56)在哈德逊.util.ProcessTree $ OSProcess.getVeto(ProcessTree.java:242)at hudson.util.ProcessTree $ Windows $ 1.killRecursively(ProcessTree.java:425)at hudson.util .ProcessTree.killAll(ProcessTree.java:145)在hudson.Proc $ LocalProc.destroy(Proc.java:380)在hudson.Proc $ LocalProc.join(Proc.java:353)在hudson.Proc.joinWithTimeout(PROC。的java:166)在org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1780)... 15 moreERROR:nullFinished:FAILURE  

I am getting the below error when attempting a Jenkins build of a project from a GitHub repository for a poc. Jenkins is a local install and I am using the https address for git with thge username and password I use to login to GitHub. Can anyone offer me some pointers here as I am new to both Jenkins and GitHub

Building in workspace C:\Program Files (x86)\Jenkins\workspace\AdventureWorks2014 - 1. Build
Cloning the remote Git repository
Cloning repository https://github.com/h020905a/AdventureWorks2014.git
 > git.exe init C:\Program Files (x86)\Jenkins\workspace\AdventureWorks2014 - 1. Build # timeout=10
Fetching upstream changes from https://github.com/h020905a/AdventureWorks2014.git
 > git.exe --version # timeout=10
using GIT_ASKPASS to set credentials 
 > git.exe fetch --tags --progress https://github.com/h020905a/AdventureWorks2014.git +refs/heads/*:refs/remotes/origin/*
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Error performing git command
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1793)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1513)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:64)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:315)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:512)
	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1057)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1097)
	at hudson.scm.SCM.checkout(SCM.java:495)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1278)
	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:1728)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:404)
Caused by: org.jvnet.winp.WinpException: Failed to read RT_USER_PROCESS_PARAMETERS error=299 at envvar-cmdline.cpp:151
	at org.jvnet.winp.Native.getCmdLineAndEnvVars(Native Method)
	at org.jvnet.winp.WinProcess.parseCmdLineAndEnvVars(WinProcess.java:126)
	at org.jvnet.winp.WinProcess.getCommandLine(WinProcess.java:102)
	at hudson.util.ProcessTree$Windows$1.getArguments(ProcessTree.java:444)
	at hudson.plugins.msbuild.MsBuildKillingVeto.vetoProcessKilling(MsBuildKillingVeto.java:56)
	at hudson.util.ProcessTree$OSProcess.getVeto(ProcessTree.java:242)
	at hudson.util.ProcessTree$Windows$1.killRecursively(ProcessTree.java:425)
	at hudson.util.ProcessTree.killAll(ProcessTree.java:145)
	at hudson.Proc$LocalProc.destroy(Proc.java:380)
	at hudson.Proc$LocalProc.join(Proc.java:353)
	at hudson.Proc.joinWithTimeout(Proc.java:166)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1780)
	... 15 more
ERROR: null
Finished: FAILURE

解决方案

Resolved the issue by switching the branch in github to master and making the repo public.

这篇关于詹金斯Git插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆