mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 21:33:06 +07:00
19 lines
510 B
JavaScript
19 lines
510 B
JavaScript
|
module.exports = {
|
||
|
detect: function() {
|
||
|
return !!process.env.BUILDKITE
|
||
|
},
|
||
|
|
||
|
configuration: function() {
|
||
|
// https://buildkite.com/docs/guides/environment-variables
|
||
|
console.log(' Buildkite CI Detected')
|
||
|
return {
|
||
|
service: 'buildkite',
|
||
|
build: process.env.BUILDKITE_BUILD_NUMBER,
|
||
|
build_url: process.env.BUILDKITE_BUILD_URL,
|
||
|
commit: process.env.BUILDKITE_COMMIT,
|
||
|
branch: process.env.BUILDKITE_BRANCH,
|
||
|
slug: process.env.BUILDKITE_PROJECT_SLUG,
|
||
|
}
|
||
|
},
|
||
|
}
|