find-node-modules
Version:
Return an array of all parent node_modules directories
21 lines (17 loc) • 452 B
JavaScript
module.exports = {
detect : function(env){
if (!env) env = process.env;
return !!env.JENKINS_URL;
},
configuration : function(env){
if (!env) env = process.env;
return {
service : 'jenkins',
commit : env.ghprbActualCommit || env.GIT_COMMIT,
branch : env.ghprbSourceBranch || env.GIT_BRANCH,
build : env.BUILD_NUMBER,
build_url : env.BUILD_URL,
pull_request : env.ghprbPullId
};
}
};