Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

33 lines
729 B

// https://confluence.jetbrains.com/display/TCD10/Predefined+Build+Parameters
const javaProperties = require('java-properties');
function getProperties(env) {
const file = env.TEAMCITY_BUILD_PROPERTIES_FILE;
if (!file) {
return {};
}
const properties = javaProperties.of(file);
return {
root: properties.get('teamcity.build.workingDir'),
branch: properties.get('teamcity.build.branch'),
};
}
module.exports = {
detect({env}) {
return Boolean(env.TEAMCITY_VERSION);
},
configuration({env}) {
return Object.assign(
{
name: 'TeamCity',
service: 'teamcity',
commit: env.BUILD_VCS_NUMBER,
build: env.BUILD_NUMBER,
slug: env.TEAMCITY_BUILDCONF_NAME,
},
getProperties(env)
);
},
};