Code Monkey home page Code Monkey logo

Comments (6)

Charles-Kai avatar Charles-Kai commented on June 13, 2024

提供配置如下:
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.

wusisu avatar wusisu commented on June 13, 2024

@caochikai git 在命令行的出错信息中,用 ^ 来表示 at 的意思。
在这里,git 表示找不到要求他构建的 ref 对应的版本树。

个人建议尝试不配置 refspec 进行尝试(这个东西很容易配错,我也不太会配)。
以及考虑提供 webhook 的内容(字符串)和 jenkins 配置(截图)以供我为你调查。

from coding-webhook-plugin.

wusisu avatar wusisu commented on June 13, 2024

我们会花时间试图重现和解决这个问题。

from coding-webhook-plugin.

Charles-Kai avatar Charles-Kai commented on June 13, 2024

@wusisu
版本:org.jenkins-ci.main:jenkins-war:2.150.1,一般灰色的build就是coding插件的,现在使用的是Generic Webhook Trigger插件。
Jenkins地址
截图如下:
仓库配置
插件配置

from coding-webhook-plugin.

Charles-Kai avatar Charles-Kai commented on June 13, 2024

请求头部
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.

Charles-Kai avatar Charles-Kai commented on June 13, 2024

@wusisu 够全了吧

from coding-webhook-plugin.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.