-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrun_rest_build.sh
executable file
·9 lines (5 loc) · 4.55 KB
/
run_rest_build.sh
1
2
3
4
5
6
7
8
9
#!/bin/bash
curl -v -X POST -d "{\"title\": \"test\", \"branch\": \"origin/master\", \"revision\": \"rev\", \"author\": \"Peter\", \"tags\": []}" http://localhost:8093/project/1/build
curl -v -X POST -d "{\"title\": \"test [ci skip]\", \"branch\": \"origin/master\", \"revision\": \"rev\", \"author\": \"Peter\", \"tags\": []}" http://localhost:8093/project/1/build
curl -v -X POST -d "payload={\"pusher\":{\"name\":\"gleber\",\"email\":\"gleber.p@gmail.com\"},\"repository\":{\"name\":\"kha\",\"size\":1096,\"created_at\":\"2012-05-12T12:37:58-07:00\",\"has_wiki\":true,\"private\":false,\"watchers\":8,\"url\":\"https://github.com/greenelephantlabs/kha\",\"fork\":false,\"language\":\"JavaScript\",\"pushed_at\":\"2012-08-21T06:51:11-07:00\",\"has_downloads\":true,\"open_issues\":0,\"has_issues\":true,\"homepage\":\"\",\"stargazers\":8,\"forks\":1,\"description\":\"Lightweight Erlang continious integration\",\"organization\":\"greenelephantlabs\",\"owner\":{\"name\":\"greenelephantlabs\",\"email\":null}},\"forced\":false,\"head_commit\":{\"added\":[],\"modified\":[\"run_rest_build.sh\",\"src/kha_build_handler.erl\"],\"removed\":[],\"author\":{\"name\":\"Gleb Peregud\",\"username\":\"gleber\",\"email\":\"gleber.p@gmail.com\"},\"timestamp\":\"2012-08-21T06:51:05-07:00\",\"url\":\"https://github.com/greenelephantlabs/kha/commit/14069fa85a0211ebe91f4ddfee29981a0dab297f\",\"id\":\"14069fa85a0211ebe91f4ddfee29981a0dab297f\",\"distinct\":true,\"message\":\"add [ci skip] support for non-hook build POST URL\",\"committer\":{\"name\":\"Gleb Peregud\",\"username\":\"gleber\",\"email\":\"gleber.p@gmail.com\"}},\"after\":\"14069fa85a0211ebe91f4ddfee29981a0dab297f\",\"deleted\":false,\"ref\":\"refs/heads/tests\",\"commits\":[{\"added\":[],\"modified\":[\"run_rest_build.sh\",\"src/kha_build_handler.erl\"],\"removed\":[],\"author\":{\"name\":\"Gleb Peregud\",\"username\":\"gleber\",\"email\":\"gleber.p@gmail.com\"},\"timestamp\":\"2012-08-21T06:51:05-07:00\",\"url\":\"https://github.com/greenelephantlabs/kha/commit/14069fa85a0211ebe91f4ddfee29981a0dab297f\",\"id\":\"14069fa85a0211ebe91f4ddfee29981a0dab297f\",\"distinct\":true,\"message\":\"add [ci skip] support for non-hook build POST URL\",\"committer\":{\"name\":\"Gleb Peregud\",\"username\":\"gleber\",\"email\":\"gleber.p@gmail.com\"}}],\"before\":\"72cc0f25b89002dd1dbdaab1a382613501a34cb4\",\"compare\":\"https://github.com/greenelephantlabs/kha/compare/72cc0f25b890...14069fa85a02\",\"created\":false}" http://localhost:8093/hooks/github/1
curl -v -X POST -d "payload={\"pusher\":{\"name\":\"gleber\",\"email\":\"gleber.p@gmail.com\"},\"repository\":{\"name\":\"kha\",\"size\":1096,\"created_at\":\"2012-05-12T12:37:58-07:00\",\"has_wiki\":true,\"private\":false,\"watchers\":8,\"url\":\"https://github.com/greenelephantlabs/kha\",\"fork\":false,\"language\":\"JavaScript\",\"pushed_at\":\"2012-08-21T06:51:11-07:00\",\"has_downloads\":true,\"open_issues\":0,\"has_issues\":true,\"homepage\":\"\",\"stargazers\":8,\"forks\":1,\"description\":\"Lightweight Erlang continious integration\",\"organization\":\"greenelephantlabs\",\"owner\":{\"name\":\"greenelephantlabs\",\"email\":null}},\"forced\":false,\"head_commit\":{\"added\":[],\"modified\":[\"run_rest_build.sh\",\"src/kha_build_handler.erl\"],\"removed\":[],\"author\":{\"name\":\"Gleb Peregud\",\"username\":\"gleber\",\"email\":\"gleber.p@gmail.com\"},\"timestamp\":\"2012-08-21T06:51:05-07:00\",\"url\":\"https://github.com/greenelephantlabs/kha/commit/14069fa85a0211ebe91f4ddfee29981a0dab297f\",\"id\":\"14069fa85a0211ebe91f4ddfee29981a0dab297f\",\"distinct\":true,\"message\":\"add ci skip support for non-hook build POST URL\",\"committer\":{\"name\":\"Gleb Peregud\",\"username\":\"gleber\",\"email\":\"gleber.p@gmail.com\"}},\"after\":\"14069fa85a0211ebe91f4ddfee29981a0dab297f\",\"deleted\":false,\"ref\":\"refs/heads/tests\",\"commits\":[{\"added\":[],\"modified\":[\"run_rest_build.sh\",\"src/kha_build_handler.erl\"],\"removed\":[],\"author\":{\"name\":\"Gleb Peregud\",\"username\":\"gleber\",\"email\":\"gleber.p@gmail.com\"},\"timestamp\":\"2012-08-21T06:51:05-07:00\",\"url\":\"https://github.com/greenelephantlabs/kha/commit/14069fa85a0211ebe91f4ddfee29981a0dab297f\",\"id\":\"14069fa85a0211ebe91f4ddfee29981a0dab297f\",\"distinct\":true,\"message\":\"add ci skip support for non-hook build POST URL\",\"committer\":{\"name\":\"Gleb Peregud\",\"username\":\"gleber\",\"email\":\"gleber.p@gmail.com\"}}],\"before\":\"72cc0f25b89002dd1dbdaab1a382613501a34cb4\",\"compare\":\"https://github.com/greenelephantlabs/kha/compare/72cc0f25b890...14069fa85a02\",\"created\":false}" http://localhost:8093/hooks/github/1