Build server prototype (integration with GitHub / NuGet / etc)
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.
 
 
 
 
micro-build-server/BuildServer/settings.ts.example

57 lines
1.6 KiB

"use strict";
import GitHubApi = require("github");
const createGithub = () => new GitHubApi({
"debug": false,
"headers": { "user-agent": "micro-build-server (mbs.pos)" },
"host": "pos-github.payonline.ru",
"pathPrefix": "/api/v3",
"protocol": "https",
"timeout": 5000
});
export default {
"builderExecutable": "../DotNetBuilder/bin/Debug/MicroBuildServer.DotNetBuilder.exe",
"codeSigningKeyFile": null,
"codeSigningPublicKey": null,
"createGithub": (repoOwner) => {
const github = createGithub();
github.authenticate({
"password": "*** OWNER APPLICATION PASSWORD ***",
"type": "basic",
"username": repoOwner
});
/* Or, alternatively:
github.authenticate({
"password": "*** MBS APPLICATION PASSWORD ***",
"type": "basic",
"username": "*** MBS USER ***"
});
*/
return github;
},
"eslintBrowserConfig": "settings-eslint-browser.json",
"gitpath": "M:/g",
"ignoreCodeAnalysisByDefault": true,
"isCodeAnalysisUnsupported": false,
"nugetApiKey": "*** NUGET API KEY ***",
"nugetHost": "https://*** NUGET HOST ***/",
"port": 3000,
"releasepath": "M:/r",
"siteRoot": "https://mbs.your.domain/",
"skipCodeSigning": true,
"smtp": {
"auth": {
"pass": "*** SMTP PASSWORD ***",
"user": "*** SMTP USERNAME ***"
},
"host": "smtp.host",
"receiver": "receiver@your.domain",
"sender": "sender@your.domain"
},
"tmpcodepath": "M:/c"
};