parent
5d4d86715b
commit
68fea460ad
@ -0,0 +1,55 @@ |
||||
"use strict"; |
||||
|
||||
const 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, |
||||
"version": "3.0.0" |
||||
}); |
||||
|
||||
module.exports = { |
||||
"builderExecutable": "../DotNetBuilder/bin/Debug/MicroBuildServer.DotNetBuilder.exe", |
||||
"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, |
||||
"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" |
||||
}; |
Loading…
Reference in new issue