Comments (6)
提供配置如下:
ssh : [email protected]:wilsonlaw/agri-rural-economic.git
选择:收到 Merge/Pull Request 事件时触发构建
选择 Git, 进入 高级, 设置 Name 为 origin, 然后:
如果是私有项目, 设置 refspec 为 +refs/heads/:refs/remotes/origin/ +refs/merge//MERGE:refs/remotes/origin/merge/
动作 (action):merge
from coding-webhook-plugin.
@caochikai git 在命令行的出错信息中,用 ^
来表示 at
的意思。
在这里,git 表示找不到要求他构建的 ref 对应的版本树。
个人建议尝试不配置 refspec
进行尝试(这个东西很容易配错,我也不太会配)。
以及考虑提供 webhook 的内容(字符串)和 jenkins 配置(截图)以供我为你调查。
from coding-webhook-plugin.
我们会花时间试图重现和解决这个问题。
from coding-webhook-plugin.
@wusisu
版本:org.jenkins-ci.main:jenkins-war:2.150.1,一般灰色的build就是coding插件的,现在使用的是Generic Webhook Trigger插件。
Jenkins地址
截图如下:
仓库配置
插件配置
from coding-webhook-plugin.
请求头部
Request URL: http://193.112.139.184:8080/coding/nyj.indechy.com-test
Request method: POST
User-Agent: Coding.net Hook
X-Coding-Event: merge request
X-Coding-Delivery: d024ef95-9144-463b-9cef-81e59c40f82f
X-Coding-WebHook-Version: v2
内容
{
"action": "merge",
"number": 1106,
"mergeRequest": {
"id": 2613056,
"url": "https://qcloud.coding.net/u/wilsonlaw/p/agri-rural-economic/git/merge/1106",
"html_url": "https://qcloud.coding.net/u/wilsonlaw/p/agri-rural-economic/git/merge/1106",
"patch_url": "https://qcloud.coding.net/u/wilsonlaw/p/agri-rural-economic/git/merge/1106.patch",
"diff_url": "https://qcloud.coding.net/u/wilsonlaw/p/agri-rural-economic/git/merge/1106.diff",
"number": 1106,
"state": "ACCEPTED",
"title": "导出表格 ",
"body": "导出表格 \n\n",
"user": {
"id": 591419,
"login": "CHEN271453865",
"avatar_url": "https://dev.tencent.com/static/fruit_avatar/Fruit-15.png",
"url": "https://qcloud.coding.net/api/user/key/CHEN271453865",
"html_url": "https://qcloud.coding.net/u/CHEN271453865",
"name": "[email protected]",
"name_pinyin": "|[email protected]|[email protected]"
},
"created_at": 1545129693000,
"updated_at": 1545129693000,
"merged_at": 1545129699822,
"merge_commit_sha": "",
"head": {
"label": "wilsonlaw:fix-tongji-page93",
"ref": "fix-tongji-page93",
"sha": "961108e903bd29ab9530df8d75449017c4eb1f86",
"user": {
"id": 385499,
"login": "wilsonlaw",
"avatar_url": "https://dn-coding-net-production-static.qbox.me/35630f54-5b83-4ed6-a8a3-3f1c07fed9c1.jpg",
"url": "https://qcloud.coding.net/api/user/key/wilsonlaw",
"html_url": "https://qcloud.coding.net/u/wilsonlaw",
"name": "广州景翰",
"name_pinyin": "|gzjh|guangzhoujinghan"
},
"repo": {
"id": 2931349,
"name": "agri-rural-economic",
"full_name": "wilsonlaw/agri-rural-economic",
"owner": {
"id": 385499,
"login": "wilsonlaw",
"avatar_url": "https://dn-coding-net-production-static.qbox.me/35630f54-5b83-4ed6-a8a3-3f1c07fed9c1.jpg",
"url": "https://qcloud.coding.net/api/user/key/wilsonlaw",
"html_url": "https://qcloud.coding.net/u/wilsonlaw",
"name": "广州景翰",
"name_pinyin": "|gzjh|guangzhoujinghan"
},
"private": true,
"html_url": "agri-rural-economic",
"description": "农业局项目\nagri - 农业\nresas",
"fork": false,
"url": "https://qcloud.coding.net/api/user/wilsonlaw/project/agri-rural-economic",
"created_at": 1526091243000,
"updated_at": 1543370948000,
"clone_url": "https://git.dev.tencent.com/wilsonlaw/agri-rural-economic.git",
"ssh_url": "[email protected]:wilsonlaw/agri-rural-economic.git",
"default_branch": "master"
}
},
"base": {
"label": "wilsonlaw:develop",
"ref": "develop",
"sha": "6f78f91d17543787d19d10f812a199f505432175",
"user": {
"id": 385499,
"login": "wilsonlaw",
"avatar_url": "https://dn-coding-net-production-static.qbox.me/35630f54-5b83-4ed6-a8a3-3f1c07fed9c1.jpg",
"url": "https://qcloud.coding.net/api/user/key/wilsonlaw",
"html_url": "https://qcloud.coding.net/u/wilsonlaw",
"name": "广州景翰",
"name_pinyin": "|gzjh|guangzhoujinghan"
},
"repo": {
"id": 2931349,
"name": "agri-rural-economic",
"full_name": "wilsonlaw/agri-rural-economic",
"owner": {
"id": 385499,
"login": "wilsonlaw",
"avatar_url": "https://dn-coding-net-production-static.qbox.me/35630f54-5b83-4ed6-a8a3-3f1c07fed9c1.jpg",
"url": "https://qcloud.coding.net/api/user/key/wilsonlaw",
"html_url": "https://qcloud.coding.net/u/wilsonlaw",
"name": "广州景翰",
"name_pinyin": "|gzjh|guangzhoujinghan"
},
"private": true,
"html_url": "agri-rural-economic",
"description": "农业局项目\nagri - 农业\nresas",
"fork": false,
"url": "https://qcloud.coding.net/api/user/wilsonlaw/project/agri-rural-economic",
"created_at": 1526091243000,
"updated_at": 1543370948000,
"clone_url": "https://git.dev.tencent.com/wilsonlaw/agri-rural-economic.git",
"ssh_url": "[email protected]:wilsonlaw/agri-rural-economic.git",
"default_branch": "master"
}
},
"merged": true,
"merged_by": {
"id": 591419,
"login": "CHEN271453865",
"avatar_url": "https://dev.tencent.com/static/fruit_avatar/Fruit-15.png",
"url": "https://qcloud.coding.net/api/user/key/CHEN271453865",
"html_url": "https://qcloud.coding.net/u/CHEN271453865",
"name": "[email protected]",
"name_pinyin": "|[email protected]|[email protected]"
},
"comments": 0,
"commits": 1,
"additions": 0,
"deletions": 0,
"changed_files": 14
},
"sender": {
"id": 591419,
"login": "CHEN271453865",
"avatar_url": "https://dev.tencent.com/static/fruit_avatar/Fruit-15.png",
"url": "https://qcloud.coding.net/api/user/key/CHEN271453865",
"html_url": "https://qcloud.coding.net/u/CHEN271453865",
"name": "[email protected]",
"name_pinyin": "|[email protected]|[email protected]"
},
"repository": {
"id": 2931349,
"name": "agri-rural-economic",
"full_name": "wilsonlaw/agri-rural-economic",
"owner": {
"id": 385499,
"login": "wilsonlaw",
"avatar_url": "https://dn-coding-net-production-static.qbox.me/35630f54-5b83-4ed6-a8a3-3f1c07fed9c1.jpg",
"url": "https://qcloud.coding.net/api/user/key/wilsonlaw",
"html_url": "https://qcloud.coding.net/u/wilsonlaw",
"name": "广州景翰",
"name_pinyin": "|gzjh|guangzhoujinghan"
},
"private": true,
"html_url": "agri-rural-economic",
"description": "农业局项目\nagri - 农业\nresas",
"fork": false,
"url": "https://qcloud.coding.net/api/user/wilsonlaw/project/agri-rural-economic",
"created_at": 1526091243000,
"updated_at": 1543370948000,
"clone_url": "https://git.dev.tencent.com/wilsonlaw/agri-rural-economic.git",
"ssh_url": "[email protected]:wilsonlaw/agri-rural-economic.git",
"default_branch": "master"
}
}
响应头部
Date: Tue, 18 Dec 2018 10:41:40 GMT
X-Content-Type-Options: nosniff
Content-Length: 0
Server: Jetty(9.4.z-SNAPSHOT)
内容
HTTP/1.1 200 OK
from coding-webhook-plugin.
@wusisu 够全了吧
from coding-webhook-plugin.
Related Issues (15)
- webhook not executed successfully HOT 2
- 能否支持一下pipeline HOT 2
- Push event 触发构建结果无法在提交历史看到 HOT 1
- MR发起之后再push,不会更新持续集成状态检查结果 HOT 1
- env.BRANCH_NAME返回的是null
- java.lang.ArrayIndexOutOfBoundsException
- 获取修改文件列表
- 构建结果无法反馈至 MR 中 HOT 2
- jenkins v2.271 error HOT 1
- 界面错乱,配置无法保存 HOT 7
- Prepare Coding Webhook for core Guava upgrade
- after init a project, and edit it a error like this.
- 提示404 Not Found找不到页面 HOT 1
- 选中按名称过滤可以触发此任务的分支的选项后保存,再打开就没有被选中了 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coding-webhook-plugin.