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/lib/tasks/dotnetnugetprocess.js

28 lines
574 B

"use strict";
var conditional = require('./conditional');
module.exports = function (params, processor) {
return conditional({
"owner": params.masterRepoName,
"branch": "master",
"task": {
"name": "nuget-push",
"type": "dotnetnugetpush",
"params": {
"nuspec": params.nuspecName + ".nuspec",
"name": params.nuspecName,
"version": params.version
}
},
"otherwise": {
"name": "nuget-pack",
"type": "dotnetnugetpack",
"params": {
"nuspec": params.nuspecName + ".nuspec",
"version": params.version
}
}
}, processor);
};