0.2.18 • Published 7 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
7 years ago
0.2.17
7 years ago
0.2.16
7 years ago
0.2.15
7 years ago
0.1.96
7 years ago
0.1.95
7 years ago
0.1.94
7 years ago
0.1.93
7 years ago
0.1.92
7 years ago
0.1.91
7 years ago
0.1.89
7 years ago
0.1.88
7 years ago
0.1.87
7 years ago
0.1.86
7 years ago
0.1.85
7 years ago
0.1.84
7 years ago
0.1.82
7 years ago
0.1.81
7 years ago
0.1.80
7 years ago
0.1.79
7 years ago
0.1.78
7 years ago
0.1.77
7 years ago
0.1.76
7 years ago
0.1.75
7 years ago
0.1.74
7 years ago
0.1.73
7 years ago
0.1.72
7 years ago
0.1.71
7 years ago
0.1.70
7 years ago
0.1.69
7 years ago
0.1.68
7 years ago
0.1.67
7 years ago
0.1.66
7 years ago
0.1.65
7 years ago
0.1.63
7 years ago
0.1.62
7 years ago
0.1.60
7 years ago
0.1.59
7 years ago
0.1.58
7 years ago
0.1.57
7 years ago
0.1.56
7 years ago
0.1.55
7 years ago
0.1.54
7 years ago
0.1.53
7 years ago
0.1.52
7 years ago
0.1.51
7 years ago
0.1.50
7 years ago
0.1.49
7 years ago
0.1.48
7 years ago