From d71230c3eb76634d06b7b7355ad4ec10154ee95b Mon Sep 17 00:00:00 2001 From: Inga Lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Wed, 21 Oct 2015 13:21:22 +0300 Subject: [PATCH] skipMbsCheckStyle param support implemented --- BuildServer/lib/tasks/dotnetbuild.js | 57 ++++++++++++++++------------ 1 file changed, 32 insertions(+), 25 deletions(-) diff --git a/BuildServer/lib/tasks/dotnetbuild.js b/BuildServer/lib/tasks/dotnetbuild.js index 64c8f21..6bba836 100644 --- a/BuildServer/lib/tasks/dotnetbuild.js +++ b/BuildServer/lib/tasks/dotnetbuild.js @@ -3,31 +3,38 @@ var sequential = require('./sequential'); module.exports = function (params, processor) { + var tasks = []; + + if (!params.skipMbsCheckStyle) { + tasks.push({ + type: "dotnetcheckstyle", + params: params + }); + } + + tasks.push({ + type: "dotnetrewrite", + params: params + }); + + tasks.push({ + type: "dotnetnugetrestore", + params: params + }); + + tasks.push({ + type: "dotnetcompile", + params: { + solution: params.solution, + skipCodeSigning: params.skipCodeSigning, + forceCodeAnalysis: params.forceCodeAnalysis, + ignoreCodeAnalysis: params.ignoreCodeAnalysis, + configuration: params.configuration, + target: "Build" + } + }); + return sequential({ - tasks: [ - { - type: "dotnetcheckstyle", - params: params - }, - { - type: "dotnetrewrite", - params: params - }, - { - type: "dotnetnugetrestore", - params: params - }, - { - type: "dotnetcompile", - params: { - solution: params.solution, - skipCodeSigning: params.skipCodeSigning, - forceCodeAnalysis: params.forceCodeAnalysis, - ignoreCodeAnalysis: params.ignoreCodeAnalysis, - configuration: params.configuration, - target: "Build" - } - } - ] + tasks: tasks }, processor); };