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

  1. // https://confluence.jetbrains.com/display/TCD10/Predefined+Build+Parameters
  2. const javaProperties = require('java-properties');
  3. function getProperties(env) {
  4. const file = env.TEAMCITY_BUILD_PROPERTIES_FILE;
  5. if (!file) {
  6. return {};
  7. }
  8. const properties = javaProperties.of(file);
  9. return {
  10. root: properties.get('teamcity.build.workingDir'),
  11. branch: properties.get('teamcity.build.branch'),
  12. };
  13. }
  14. module.exports = {
  15. detect({env}) {
  16. return Boolean(env.TEAMCITY_VERSION);
  17. },
  18. configuration({env}) {
  19. return Object.assign(
  20. {
  21. name: 'TeamCity',
  22. service: 'teamcity',
  23. commit: env.BUILD_VCS_NUMBER,
  24. build: env.BUILD_NUMBER,
  25. slug: env.TEAMCITY_BUILDCONF_NAME,
  26. },
  27. getProperties(env)
  28. );
  29. },
  30. };