webHook触发jenkins流水线任务构建失败
jenkins 手动触发任务构建正常
jenkins 版本2.250
流水线任务配置如下图
通过webhook触发错误如下
git ls-remote -h https://gitee.com/zjddwl/jenkins-script.git # timeout=10
Found match: refs/heads/master revision 5085517405aea4600740fcaa92a4ba79fef76491
using credential d4ab8025-da03-4ced-b7e9-8d23b4b20d36
git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
git config remote.origin.url https://gitee.com/zjddwl/jenkins-script.git # timeout=10
Fetching without tags
Fetching upstream changes from https://gitee.com/zjddwl/jenkins-script.git
git --version # timeout=10
using GIT_ASKPASS to set credentials 码云账号
git fetch --no-tags --progress https://gitee.com/zjddwl/jenkins-script.git +refs/heads/:refs/remotes/origin/ # timeout=10
git rev-parse remotes/origin/test_version^{commit} # timeout=10
ERROR: Checkout failed
hudson.plugins.git.GitException: Command "git rev-parse remotes/origin/test_version^{commit}" returned status code 128:
stdout: remotes/origin/test_version^{commit}
stderr: fatal: ambiguous argument 'remotes/origin/test_version^{commit}': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2436)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2366)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2362)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1922)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1934)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.revParse(CliGitAPIImpl.java:1036)
at hudson.plugins.git.GitAPI.revParse(GitAPI.java:324)
at hudson.plugins.git.RevisionParameterAction.toRevision(RevisionParameterAction.java:98)
at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:1049)
我也遇到了同样的问题,跟着https://gitee.com/help/articles/4193#article-header0 这个教程一步一步走,单分支结构,然后出现了remotes/origin/test_version^{commit}" returned status code 128:
这个错误,比较好奇这个test_version是从哪里得到的
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
我也遇到了同样的问题,跟着https://gitee.com/help/articles/4193#article-header0 这个教程一步一步走,单分支结构,然后出现了
remotes/origin/test_version^{commit}" returned status code 128:
这个错误,比较好奇这个test_version是从哪里得到的
@韩萌 这个问题好像没人处理。。。 4天了还没人来解决
我用密码的方式成功了,但gitee的例程还是不行
我也遇到了同样的问题,跟着https://gitee.com/help/articles/4193#article-header0 这个教程一步一步走,单分支结构,然后出现了
remotes/origin/test_version^{commit}" returned status code 128:
这个错误,比较好奇这个test_version是从哪里得到的
@韩萌 这个 test_version 是gitee 的webhook功能的模拟测试数据,是点击测试按钮或者新增一个webhook才出现的,可以按正常的push 或者pr的真实 webhook数据来验证jenkins构建过程
登录 后才可以发表评论