Simplified nuget commands

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 10 years ago
parent 3bc9dbd221
commit 1e7761bffa
  1. 27
      BuildServer/lib/tasks/dotnetnugetprocess.js

@ -0,0 +1,27 @@
"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);
};
Loading…
Cancel
Save