find-node-modules
Version:
Return an array of all parent node_modules directories
21 lines (19 loc) • 599 B
JavaScript
// https://confluence.atlassian.com/bitbucket/environment-variables-794502608.html
module.exports = {
detect({env}) {
return Boolean(env.BITBUCKET_BUILD_NUMBER);
},
configuration({env}) {
return {
name: 'Bitbucket Pipelines',
service: 'bitbucket',
commit: env.BITBUCKET_COMMIT,
tag: env.BITBUCKET_TAG,
build: env.BITBUCKET_BUILD_NUMBER,
buildUrl: `https://bitbucket.org/${env.BITBUCKET_REPO_SLUG}/addon/pipelines/home#!/results/${env.BITBUCKET_BUILD_NUMBER}`,
branch: env.BITBUCKET_BRANCH,
slug: env.BITBUCKET_REPO_SLUG,
root: env.BITBUCKET_CLONE_DIR,
};
},
};