From 773bb8dd14c5b695368cc262cb4284afcd2d83e8 Mon Sep 17 00:00:00 2001 From: Inga Lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Thu, 17 Apr 2014 12:45:40 +0400 Subject: [PATCH] Fixed version bug See e466ac0ebd61905a5e55b0cc19031f2733a0e54d --- BuildServer/lib/tasks/dotnetnugetpack.js | 2 +- BuildServer/lib/tasks/dotnetrewrite.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BuildServer/lib/tasks/dotnetnugetpack.js b/BuildServer/lib/tasks/dotnetnugetpack.js index 39b8a12..6cab2c6 100644 --- a/BuildServer/lib/tasks/dotnetnugetpack.js +++ b/BuildServer/lib/tasks/dotnetnugetpack.js @@ -9,6 +9,6 @@ module.exports = function (params, processor) { 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()) + Version: (params.major || "0") + "." + date.getFullYear() + "." + ((date.getMonth() + 1) * 100 + date.getDate()) + "." + ((date.getHours() * 100 + date.getMinutes()) * 100 + date.getSeconds()) }, processor); }; diff --git a/BuildServer/lib/tasks/dotnetrewrite.js b/BuildServer/lib/tasks/dotnetrewrite.js index 91a1b0a..1c8cb60 100644 --- a/BuildServer/lib/tasks/dotnetrewrite.js +++ b/BuildServer/lib/tasks/dotnetrewrite.js @@ -16,7 +16,7 @@ module.exports = function (params, processor) { var date = new Date(), version = date.getFullYear() + "." + (date.getMonth() + 1) + "." + - date.getDay() + "." + + date.getDate() + "." + ((date.getHours() * 100 + date.getMinutes()) * 100 + date.getSeconds()) + " (" + "built from " + processor.context.rev + "; " + "repository: " + processor.context.owner + "/" + processor.context.reponame + "; " +