我刚刚在Windows 7上安装了Jenkins,并尝试为github存储库创建一个测试版本。
我尝试创建一个非常简单的构建,但它很成功。现在我想尝试“Git Publisher”后建立动作。我想在成功构建之后推送一个简单的标签。
以下是构建作业的屏幕截图:
但是当我构建作业时,它始终在控制台上给出以下错误。我猜这个问题与凭据和帐户设置有关,但我不知道要继续。请指点一些可以帮助我的参考资料。
以下是管理凭据的屏幕截图。唯一的问题是,一旦我保存并重新打开“管理凭据”,ssh私钥就会消失。
[EDIT-1]在设置ssh密钥后,我现在收到以下错误消息:
> 21:58:24 Pushing tag tag02 to repo gitrepo
> 21:58:24 ERROR: Failed to push tag tag02 to gitrepo
> 21:58:24 hudson.plugins.git.GitException: Error performing command: /usr/bin/git push
> git@github.paypal.com:atagrawal/maven-test-3.git tag02
> 21:58:24 Command "/usr/bin/git push git@github.paypal.com:atagrawal/maven-test-3.git tag02" returned
> status code 128: ERROR: Permission to atagrawal/maven-test-3.git
> denied to gitadmin.
> 21:58:24 fatal: The remote end hung up unexpectedly
> 21:58:24
> 21:58:24 at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:776)
> 21:58:24 at hudson.plugins.git.GitAPI.launchCommand(GitAPI.java:741)
> 21:58:24 at hudson.plugins.git.GitAPI.push(GitAPI.java:788)
> 21:58:24 at hudson.plugins.git.GitPublisher$3.invoke(GitPublisher.java:277)
> 21:58:24 at hudson.plugins.git.GitPublisher$3.invoke(GitPublisher.java:247)
> 21:58:24 at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2154)
> 21:58:24 at hudson.remoting.UserRequest.perform(UserRequest.java:118)
> 21:58:24 at hudson.remoting.UserRequest.perform(UserRequest.java:48)
> 21:58:24 at hudson.remoting.Request$2.run(Request.java:287)
> 21:58:24 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
> 21:58:24 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> 21:58:24 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 21:58:24 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 21:58:24 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 21:58:24 at java.lang.Thread.run(Thread.java:619)
> 21:58:24 Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git push git@github.paypal.com:atagrawal/maven-test-3.git
> tag02" returned status code 128: ERROR: Permission to
> atagrawal/maven-test-3.git denied to gitadmin.
> 21:58:24 fatal: The remote end hung up unexpectedly
> 21:58:24
> 21:58:24 at hudson.plugins.git.GitAPI.launchCommandIn(GitAPI.java:771)
> 21:58:24 ... 14 more
> 21:58:24 Build step 'Git Publisher' changed build result to FAILURE
> 21:58:24 Build step 'Git Publisher' marked build as failure
> 21:58:24 ### mvnpublisher.perform:class hudson.maven.MavenModuleSet