dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
parent
668730e1da
commit
80c1b3d57c
@ -1,14 +1,24 @@ |
||||
"use strict"; |
||||
|
||||
var dotNetBuilderWrapper = require('./dotnetbuilderwrapper'); |
||||
var sequential = require('./sequential'); |
||||
|
||||
module.exports = function (params, processor) { |
||||
var date = new Date(); |
||||
return dotNetBuilderWrapper({ |
||||
var date = new Date(), |
||||
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"; |
||||
|
||||
return sequential({ |
||||
tasks: [ |
||||
{ |
||||
type: "dotnetbuilderwrapper", |
||||
params: { |
||||
command: "nugetpack", |
||||
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.getDate()) + "." + ((date.getHours() * 100 + date.getMinutes()) * 100 + date.getSeconds()) |
||||
OutputDirectory: processor.context.exported, |
||||
Version: version |
||||
} |
||||
} |
||||
] |
||||
}, processor); |
||||
}; |
||||
|
Loading…
Reference in new issue