-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Users/arjgupta/iis mg update2 #3405
Conversation
var xmlSubstitutionUtility = require('webdeployment-common/xmlvariablesubstitutionutility.js'); | ||
var xdtTransformationUtility = require('webdeployment-common/xdttransformationutility.js'); | ||
var ft = require('webdeployment-common/fileTransformationsUtility.js'); | ||
//var jsonSubstitutionUtility = require('webdeployment-common/jsonvariablesubstitutionutility.js'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can u remove the comments ?
console.log(tl.loc("XDTTransformationsappliedsuccessfully")); | ||
} | ||
else { | ||
throw new Error(tl.loc("CannotPerformXdtTransformationOnNonWindowsPlatform")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error messages are missing in task.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have updated task.json accordingly
} | ||
|
||
if(JSONFiles.length != 0) { | ||
jsonSubstitutionUtility.jsonVariableSubstitution(folderPath, JSONFiles); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error messages are missing in task.json - > (inside jsonVariableSubstitution )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have updated task.json accordingly
@@ -13,6 +13,11 @@ | |||
"archiveName": "MSDeploy.zip", | |||
"url": "https://vstsagenttools.blob.core.windows.net/tools/MSDeploy/3.6/MSDeploy.zip", | |||
"dest": "./" | |||
}, | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation.
@@ -18,7 +19,11 @@ async function run() | |||
var excludeFilesFromAppDataFlag: boolean = tl.getBoolInput('ExcludeFilesFromAppDataFlag', false); | |||
var takeAppOfflineFlag: boolean = tl.getBoolInput('TakeAppOfflineFlag', false); | |||
var additionalArguments: string = tl.getInput('AdditionalArguments', false); | |||
var xmlTransformation: boolean = tl.getBoolInput('XmlTransformation', false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation.
@@ -32,6 +37,13 @@ async function run() | |||
webDeployPkg = availableWebPackages[0]; | |||
|
|||
var isFolderBasedDeployment = await utility.isInputPkgIsFolder(webDeployPkg); | |||
|
|||
if(JSONFiles.length != 0 || xmlTransformation || xmlVariableSubstitution) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation.
@@ -4,6 +4,7 @@ import fs = require('fs'); | |||
|
|||
var msDeploy = require('webdeployment-common/deployusingmsdeploy.js'); | |||
var utility = require('webdeployment-common/utility.js'); | |||
var ft = require('webdeployment-common/fileTransformationsUtility.js'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can u name the variable like 'fileTransformationsUtility' ?
@@ -23,6 +23,11 @@ | |||
"minimumAgentVersion": "1.102.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agent version should be changed to 2.104.1.
…osoft/vsts-tasks into users/arjgupta/iisMgUpdate2
No description provided.