HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/shop.komma.nl/node_modules/env-ci/services/codebuild.js
const {head, branch} = require('../lib/git');

// https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html

module.exports = {
	detect({env}) {
		return Boolean(env.CODEBUILD_BUILD_ID);
	},
	configuration({env, cwd}) {
		return {
			name: 'AWS CodeBuild',
			service: 'codebuild',
			commit: head({env, cwd}),
			build: env.CODEBUILD_BUILD_ID,
			branch: branch({env, cwd}),
			buildUrl: `https://console.aws.amazon.com/codebuild/home?region=${env.AWS_REGION}#/builds/${
				env.CODEBUILD_BUILD_ID
			}/view/new`,
			root: env.PWD,
		};
	},
};