jsh*_*ton 10 jenkins jenkins-plugins
发送POST请求/jenkins/bitbucket-hook导致500错误:
javax.servlet.ServletException: net.sf.json.JSONException: A JSONObject text must begin with '{' at character 0 of
无论内容类型还是正文数据.发送的正文数据是Bitbucket概述的:
{
"canon_url": "https://bitbucket.org",
"commits": [
{
"author": "marcus",
"branch": "master",
"files": [
{
"file": "somefile.py",
"type": "modified"
}
],
"message": "Added some more things to somefile.py\n",
"node": "620ade18607a",
"parents": [
"702c70160afc"
],
"raw_author": "Marcus Bertrand <marcus@somedomain.com>",
"raw_node": "620ade18607ac42d872b568bb92acaa9a28620e9",
"revision": null,
"size": -1,
"timestamp": "2012-05-30 05:58:56",
"utctimestamp": "2012-05-30 03:58:56+00:00"
}
],
"repository": {
"absolute_url": "/marcus/project-x/",
"fork": false,
"is_private": true,
"name": "Project X",
"owner": "marcus",
"scm": "git",
"slug": "project-x",
"website": "https://atlassian.com/"
},
"user": "marcus"
}
Run Code Online (Sandbox Code Playgroud)
Jenkins是最新版本,以及Bitbucket插件.
更新:我使用了直接从BitBucket获取的数据. http://www.posttestserver.com/data/2015/05/20/sb/02.50.32555038623
| 归档时间: |
|
| 查看次数: |
1321 次 |
| 最近记录: |