Fixed dotnetnugetpushonly

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 9 years ago
parent b145c3a3e0
commit 4c363f9e0a
  1. 2
      BuildServer/lib/tasks/dotnetnugetpush.js
  2. 4
      BuildServer/lib/tasks/dotnetnugetpushonly.js

@ -6,7 +6,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.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()))) + "-r" + processor.context.rev.substr(0, 16),
nupkg = processor.context.exported + "/" + params.name + "." + version + ".nupkg"; nupkg = params.name + "." + version + ".nupkg";
return sequential({ return sequential({
tasks: [ tasks: [

@ -1,13 +1,13 @@
"use strict"; "use strict";
var sequential = require("./sequential"); var sequential = require("./sequential");
var dotnetbuilderwrapper = require('dotnetbuilderwrapper'); var dotnetbuilderwrapper = require('./dotnetbuilderwrapper');
var settings = require("../../settings"); var settings = require("../../settings");
module.exports = function (params, processor) { module.exports = function (params, processor) {
return dotnetbuilderwrapper({ return dotnetbuilderwrapper({
command: "nugetpush", command: "nugetpush",
Package: params.Package, Package: processor.context.exported + "/" + params.Package,
NugetHost: settings.nugetHost, NugetHost: settings.nugetHost,
ApiKey: settings.nugetApiKey ApiKey: settings.nugetApiKey
}, processor); }, processor);

Loading…
Cancel
Save