From 6dcdc52fcdf7a564da7992d0664412684c022a84 Mon Sep 17 00:00:00 2001 From: Ruoyu Wang Date: Wed, 23 Feb 2022 15:48:46 +0800 Subject: [PATCH 1/2] fix no wait result bug --- .../AzureSpringCloudDeploymentProvider.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tasks/AzureSpringCloudV0/deploymentProvider/AzureSpringCloudDeploymentProvider.ts b/Tasks/AzureSpringCloudV0/deploymentProvider/AzureSpringCloudDeploymentProvider.ts index 441b3df15ea8..8c114e0620f6 100644 --- a/Tasks/AzureSpringCloudV0/deploymentProvider/AzureSpringCloudDeploymentProvider.ts +++ b/Tasks/AzureSpringCloudV0/deploymentProvider/AzureSpringCloudDeploymentProvider.ts @@ -68,7 +68,7 @@ export class AzureSpringCloudDeploymentProvider { tl.debug('Delete staging deployment action'); const deploymentName = await this.azureSpringCloud.getInactiveDeploymentName(this.taskParameters.AppName); if (deploymentName) { - this.azureSpringCloud.deleteDeployment(this.taskParameters.AppName, deploymentName); + await this.azureSpringCloud.deleteDeployment(this.taskParameters.AppName, deploymentName); } else { throw Error(tl.loc('NoStagingDeploymentFound')); } @@ -94,7 +94,7 @@ export class AzureSpringCloudDeploymentProvider { } } - this.azureSpringCloud.setActiveDeployment(this.taskParameters.AppName, deploymentName); + await this.azureSpringCloud.setActiveDeployment(this.taskParameters.AppName, deploymentName); } private async performDeployAction() { @@ -141,7 +141,7 @@ export class AzureSpringCloudDeploymentProvider { } } try { - this.azureSpringCloud.deploy(fileToUpload, sourceType, this.taskParameters.AppName, + await this.azureSpringCloud.deploy(fileToUpload, sourceType, this.taskParameters.AppName, deploymentName, createDeployment, this.taskParameters.RuntimeVersion, this.taskParameters.JvmOptions, this.taskParameters.EnvironmentVariables, this.taskParameters.DotNetCoreMainEntryPath, this.taskParameters.Version); } catch (error) { From 893392a59677679eb0c0c42f4661685bfecf8892 Mon Sep 17 00:00:00 2001 From: Ruoyu Wang Date: Wed, 23 Feb 2022 16:06:09 +0800 Subject: [PATCH 2/2] bump version --- Tasks/AzureSpringCloudV0/task.json | 2 +- Tasks/AzureSpringCloudV0/task.loc.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tasks/AzureSpringCloudV0/task.json b/Tasks/AzureSpringCloudV0/task.json index 6d33852b01f2..a946a4b8eba3 100644 --- a/Tasks/AzureSpringCloudV0/task.json +++ b/Tasks/AzureSpringCloudV0/task.json @@ -18,7 +18,7 @@ "preview": true, "version": { "Major": 0, - "Minor": 198, + "Minor": 201, "Patch": 0 }, "minimumAgentVersion": "2.104.1", diff --git a/Tasks/AzureSpringCloudV0/task.loc.json b/Tasks/AzureSpringCloudV0/task.loc.json index 80129a1b1847..ba11de9e5635 100644 --- a/Tasks/AzureSpringCloudV0/task.loc.json +++ b/Tasks/AzureSpringCloudV0/task.loc.json @@ -18,7 +18,7 @@ "preview": true, "version": { "Major": 0, - "Minor": 198, + "Minor": 201, "Patch": 0 }, "minimumAgentVersion": "2.104.1",