2

我刚刚在 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
4

0 回答 0