0.2.18 • Published 8 years ago
qwebs-bitbucket-deploy v0.2.18
qwebs-auth-jwt
Qwebs webhook service to deploy from bitbucket.
Features
Override default behaviour
const BitbucketService = require("qwebs-bitbucket-deploy");
const process = require("process");
class MyBitbucketService extends BitbucketService {
constructor() {
super();
};
/* return boolean */
startDeployement(comments) {
return comments.reduce((previous, current) => {
//find a comment like 'prod version 1.0.3'
return previous || /prod version \d+.\d+.\d+/g.test(current);
}, false);
}
restart() {
//just stop the process
//if we use pm2, the process will be automatically restarted
process.exit(1);
}
};
exports = module.exports = MyBitbucketService;
Declare and inject $auth
{
"services": [
{ "name": "$bitbucket", "location": "./services/bitbucket" }
],
"locators": [
{ "post": "/api/bitbucket", "service": "$bitbucket", "method": "webhook" }
]
}
API
- webhook(request, response)
- startDeployement(Array comments) : boolean
- restart()
Installation
$ npm install qwebs-bitbucket-deploy
0.2.18
8 years ago
0.2.17
8 years ago
0.2.16
8 years ago
0.2.15
8 years ago
0.1.96
8 years ago
0.1.95
8 years ago
0.1.94
8 years ago
0.1.93
8 years ago
0.1.92
8 years ago
0.1.91
8 years ago
0.1.89
8 years ago
0.1.88
8 years ago
0.1.87
8 years ago
0.1.86
8 years ago
0.1.85
8 years ago
0.1.84
8 years ago
0.1.82
8 years ago
0.1.81
8 years ago
0.1.80
8 years ago
0.1.79
8 years ago
0.1.78
8 years ago
0.1.77
8 years ago
0.1.76
8 years ago
0.1.75
8 years ago
0.1.74
8 years ago
0.1.73
8 years ago
0.1.72
8 years ago
0.1.71
8 years ago
0.1.70
8 years ago
0.1.69
8 years ago
0.1.68
8 years ago
0.1.67
8 years ago
0.1.66
8 years ago
0.1.65
8 years ago
0.1.63
8 years ago
0.1.62
8 years ago
0.1.60
8 years ago
0.1.59
8 years ago
0.1.58
8 years ago
0.1.57
8 years ago
0.1.56
8 years ago
0.1.55
8 years ago
0.1.54
8 years ago
0.1.53
8 years ago
0.1.52
8 years ago
0.1.51
8 years ago
0.1.50
8 years ago
0.1.49
8 years ago
0.1.48
8 years ago