登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
代码拉取完成,页面将自动刷新
开源项目
>
开发工具
>
版本管理系统
&&
插件和扩展
>
Jenkins 插件
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
80
Star
472
Fork
101
开源中国
/
Gitee Jenkins Plugin
代码
Issues
15
Pull Requests
0
Wiki
统计
流水线
服务
JavaDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
webHook触发流水线任务失败
已完成
#I1PROD
缺陷
zach
创建于
2020-07-31 16:51
### 问题描述 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 <command> [<revision>...] -- [<file>...]' 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)
### 问题描述 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 <command> [<revision>...] -- [<file>...]' 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)
评论 (
7
)
登录
后才可以发表评论
状态
已完成
待确认
已确认
待办的
进行中
待测试
测试通过
已完成
待上线
已验收
已拒绝
挂起
负责人
未设置
sanm
sanm00
负责人
协作者
+负责人
+协作者
标签
未设置
项目
未立项任务
未立项任务
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (8)
标签 (18)
master
zqs/feature
ruby2go
v1.2.7-guoxin
refactor
github
without-api
rename-gitee
gitee-1.2.7
gitee-1.2.6
gitee-1.2.5
gitee-1.2.4
gitee-1.2.3
gitee-1.2.2
gitee-1.2.1
gitee-1.1.9
gitee-1.1.6
gitee-1.1.5
gitee-1.1.4
gitee-1.1.3
gitee-1.1.2
gitee-1.1.1
gitee-1.0.14
gitee-1.0.13
gitee-1.0.12
gitee-1.0.11
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
Java
1
https://gitee.com/oschina/Gitee-Jenkins-Plugin.git
git@gitee.com:oschina/Gitee-Jenkins-Plugin.git
oschina
Gitee-Jenkins-Plugin
Gitee Jenkins Plugin
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册