Fixed version bug

See e466ac0ebd61905a5e55b0cc19031f2733a0e54d
dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 11 years ago
parent 3e6fa71641
commit 773bb8dd14
  1. 2
      BuildServer/lib/tasks/dotnetnugetpack.js
  2. 2
      BuildServer/lib/tasks/dotnetrewrite.js

@ -9,6 +9,6 @@ module.exports = function (params, processor) {
BaseDirectory: processor.context.exported, BaseDirectory: processor.context.exported,
SpecPath: processor.context.exported + "/" + params.nuspec, SpecPath: processor.context.exported + "/" + params.nuspec,
OutputDirectory: processor.context.release, OutputDirectory: processor.context.release,
Version: (params.major || "0") + "." + date.getFullYear() + "." + ((date.getMonth() + 1) * 100 + date.getDay()) + "." + ((date.getHours() * 100 + date.getMinutes()) * 100 + date.getSeconds()) Version: (params.major || "0") + "." + date.getFullYear() + "." + ((date.getMonth() + 1) * 100 + date.getDate()) + "." + ((date.getHours() * 100 + date.getMinutes()) * 100 + date.getSeconds())
}, processor); }, processor);
}; };

@ -16,7 +16,7 @@ module.exports = function (params, processor) {
var date = new Date(), var date = new Date(),
version = date.getFullYear() + "." + version = date.getFullYear() + "." +
(date.getMonth() + 1) + "." + (date.getMonth() + 1) + "." +
date.getDay() + "." + date.getDate() + "." +
((date.getHours() * 100 + date.getMinutes()) * 100 + date.getSeconds()) + " (" + ((date.getHours() * 100 + date.getMinutes()) * 100 + date.getSeconds()) + " (" +
"built from " + processor.context.rev + "; " + "built from " + processor.context.rev + "; " +
"repository: " + processor.context.owner + "/" + processor.context.reponame + "; " + "repository: " + processor.context.owner + "/" + processor.context.reponame + "; " +

Loading…
Cancel
Save