Implemented nuget pack task

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 11 years ago
parent 47aa925330
commit 7f79be8c08
  1. 14
      BuildServer/lib/tasks/dotnetnugetpack.js

@ -0,0 +1,14 @@
"use strict";
var dotNetBuilderWrapper = require('./dotnetbuilderwrapper');
module.exports = function (params, processor) {
var date = new Date();
return dotNetBuilderWrapper({
command: "nugetpack",
BaseDirectory: processor.context.exported,
SpecPath: processor.context.exported + "/" + params.nuspec,
OutputDirectory: processor.context.release,
Version: (params.major || "0") + "." + date.getFullYear() + "." + ((date.getMonth() + 1) * 100 + date.getDay()) + "." + ((date.getHours() * 100 + date.getMinutes()) * 100 + date.getSeconds())
}, processor);
};
Loading…
Cancel
Save