Skip to content

Commit

Permalink
fix no wait result bug (#15957)
Browse files Browse the repository at this point in the history
* fix no wait result bug

* bump version

Co-authored-by: Anatoly Bolshakov <[email protected]>
Co-authored-by: Nikita Ezzhev <[email protected]>
  • Loading branch information
3 people authored Mar 3, 2022
1 parent e5c0713 commit 1464970
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
Expand All @@ -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() {
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureSpringCloudV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"preview": true,
"version": {
"Major": 0,
"Minor": 198,
"Minor": 201,
"Patch": 0
},
"minimumAgentVersion": "2.104.1",
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureSpringCloudV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"preview": true,
"version": {
"Major": 0,
"Minor": 198,
"Minor": 201,
"Patch": 0
},
"minimumAgentVersion": "2.104.1",
Expand Down

0 comments on commit 1464970

Please sign in to comment.