github-tools / github-tools/github
Unable to Create Webhook for Jenkins
- Ngôn ngữ chính
- JavaScript
- Star
- 3.8k
- Fork
- 809
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
```
var GitHub = require('github-api');
var Promise = require("es6-promise").Promise;
const gh = new GitHub({
username: 'foo',
password: 'bar'
});
var fork = gh.getRepo('user', 'repo');
console.log(fork);
var hookDef = {
"name" : "web",
"config" : {
"url" : "http://jenkinshost:8080",
"content_type": "json"
},
"events" : ["push"],
"active" : true
}
fork.createHook(hookDef)
.then(function(data) {
console.log("A jenkins hook has been created which will trigger a build on push and pull request events...");
});
```
Is there something I am missing
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.