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.
|
|
|
"use strict";
|
|
|
|
|
|
|
|
var conditional = require('./conditional');
|
|
|
|
|
|
|
|
module.exports = function (params, processor) {
|
|
|
|
return conditional({
|
|
|
|
"owner": params.masterRepoOwner,
|
|
|
|
"branch": "master",
|
|
|
|
"task": {
|
|
|
|
"name": "nuget-push",
|
|
|
|
"type": "dotnetnugetpush",
|
|
|
|
"params": {
|
|
|
|
"nuspec": params.nuspecName + ".nuspec",
|
|
|
|
"name": params.nuspecName,
|
|
|
|
"withoutCommitSha": params.withoutCommitSha,
|
|
|
|
"version": params.version,
|
|
|
|
"major": params.major
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"otherwise": {
|
|
|
|
"name": "nuget-pack",
|
|
|
|
"type": "dotnetnugetpack",
|
|
|
|
"params": {
|
|
|
|
"nuspec": params.nuspecName + ".nuspec",
|
|
|
|
"withoutCommitSha": params.withoutCommitSha,
|
|
|
|
"version": params.version,
|
|
|
|
"major": params.major
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, processor);
|
|
|
|
};
|