Implemented withoutCommitSha param support

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

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

@ -12,6 +12,7 @@ module.exports = function (params, processor) {
"params": {
"nuspec": params.nuspecName + ".nuspec",
"name": params.nuspecName,
"withoutCommitSha": params.withoutCommitSha,
"version": params.version,
"major": params.major
}
@ -21,6 +22,7 @@ module.exports = function (params, processor) {
"type": "dotnetnugetpack",
"params": {
"nuspec": params.nuspecName + ".nuspec",
"withoutCommitSha": params.withoutCommitSha,
"version": params.version,
"major": params.major
}

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

Loading…
Cancel
Save