azure-pipelines-tasks-webdeployment-common 4.243.0 → 4.243.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/msdeployutility.js +10 -5
- package/package.json +1 -1
package/msdeployutility.js
CHANGED
|
@@ -263,14 +263,19 @@ function getInstalledMSDeployVersion() {
|
|
|
263
263
|
exports.getInstalledMSDeployVersion = getInstalledMSDeployVersion;
|
|
264
264
|
function installedMSDeployVersionSupportsTokenAuth() {
|
|
265
265
|
return __awaiter(this, void 0, void 0, function* () {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
const msDeployVersion = yield getInstalledMSDeployVersion();
|
|
269
|
-
if (!msDeployVersion) {
|
|
266
|
+
const msDeployVersionString = yield getInstalledMSDeployVersion();
|
|
267
|
+
if (!msDeployVersionString) {
|
|
270
268
|
tl.debug('Could not determine MSDeploy version. Assuming it is not installed.');
|
|
271
269
|
return undefined;
|
|
272
270
|
}
|
|
273
|
-
|
|
271
|
+
const msDeployVersion = semver.coerce(msDeployVersionString);
|
|
272
|
+
// MSDeploy 9.0.7225 is the first product version to support token auth
|
|
273
|
+
if (semver.gte(msDeployVersion, semver.coerce("9.0.7225"))) {
|
|
274
|
+
return true;
|
|
275
|
+
}
|
|
276
|
+
// MDeploy shipped with Web Deploy has different versioning scheme
|
|
277
|
+
// Versions between 9.0.2000 and 9.0.2999 are considered to be similar to 9.0.7225
|
|
278
|
+
return semver.gte(msDeployVersion, semver.coerce("9.0.2000")) && semver.lte(msDeployVersion, semver.coerce("9.0.2999"));
|
|
274
279
|
});
|
|
275
280
|
}
|
|
276
281
|
exports.installedMSDeployVersionSupportsTokenAuth = installedMSDeployVersionSupportsTokenAuth;
|