Implemented nuget version specification

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 9 years ago
parent bfedfdb41f
commit 3bc9dbd221
  1. 2
      BuildServer/lib/tasks/dotnetnugetpack.js
  2. 2
      BuildServer/lib/tasks/dotnetnugetpush.js

@ -4,7 +4,7 @@ var sequential = require('./sequential');
module.exports = function (params, processor) { module.exports = function (params, processor) {
var date = new Date(), var date = new Date(),
version = (params.major || "0") + "." + date.getFullYear() + "." + ((date.getMonth() + 1) * 100 + date.getDate()) + "." + ((date.getHours() * 100 + date.getMinutes()) * 100 + date.getSeconds()), version = params.version || ((params.major || "0") + "." + date.getFullYear() + "." + ((date.getMonth() + 1) * 100 + date.getDate()) + "." + ((date.getHours() * 100 + date.getMinutes()) * 100 + date.getSeconds())),
nupkg = processor.context.exported + "/" + params.name + "." + version + ".nupkg"; nupkg = processor.context.exported + "/" + params.name + "." + version + ".nupkg";
return sequential({ return sequential({

@ -5,7 +5,7 @@ var settings = require("../../settings");
module.exports = function (params, processor) { module.exports = function (params, processor) {
var date = new Date(), var date = new Date(),
version = (params.major || "0") + "." + date.getFullYear() + "." + ((date.getMonth() + 1) * 100 + date.getDate()) + "." + ((date.getHours() * 100 + date.getMinutes()) * 100 + date.getSeconds()), version = params.version || ((params.major || "0") + "." + date.getFullYear() + "." + ((date.getMonth() + 1) * 100 + date.getDate()) + "." + ((date.getHours() * 100 + date.getMinutes()) * 100 + date.getSeconds())),
nupkg = processor.context.exported + "/" + params.name + "." + version + ".nupkg"; nupkg = processor.context.exported + "/" + params.name + "." + version + ".nupkg";
return sequential({ return sequential({

Loading…
Cancel
Save