Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public async UpdateDeploymentStatus(isDeploymentSuccess: boolean) {
if(!!this.appService) {
await addAnnotation(this.taskParams.endpoint, this.appService, isDeploymentSuccess);
}
this.activeDeploymentID = await this.kuduServiceUtility.updateDeploymentStatus(isDeploymentSuccess, null, {'type': 'Deployment', slotName: this.taskParams.slotName});
core.debug('Active DeploymentId :'+ this.activeDeploymentID);
if(!!isDeploymentSuccess) {
await this.kuduServiceUtility.postZipDeployOperation(this.deploymentID, this.activeDeploymentID);
}
console.log('App Service Application URL: ' + this.applicationURL);
core.setOutput('webapp-url', this.applicationURL);
}
return __awaiter(this, void 0, void 0, function* () {
if (!!this.appService) {
yield AnnotationUtility_1.addAnnotation(this.taskParams.endpoint, this.appService, isDeploymentSuccess);
}
this.activeDeploymentID = yield this.kuduServiceUtility.updateDeploymentStatus(isDeploymentSuccess, null, { 'type': 'Deployment', slotName: this.taskParams.slotName });
core.debug('Active DeploymentId :' + this.activeDeploymentID);
if (!!isDeploymentSuccess) {
yield this.kuduServiceUtility.postZipDeployOperation(this.deploymentID, this.activeDeploymentID);
}
console.log('App Service Application URL: ' + this.applicationURL);
core.setOutput('webapp-url', this.applicationURL);
});
}