File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
Tasks/AzureRmWebAppDeploymentV5/operations
AzureRmWebAppDeploymentV5_Node20/operations
AzureRmWebAppDeploymentV5/operations Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { KUDU_DEPLOYMENT_CONSTANTS } from 'azure-pipelines-tasks-azure-arm-rest/
9
9
import { Kudu } from 'azure-pipelines-tasks-azure-arm-rest/azure-arm-app-service-kudu' ;
10
10
11
11
import webClient = require( 'azure-pipelines-tasks-azure-arm-rest/webClient' ) ;
12
+ import { PackageType } from 'azure-pipelines-tasks-webdeployment-common/packageUtility' ;
12
13
13
14
var deployUtility = require ( 'azure-pipelines-tasks-webdeployment-common/utility.js' ) ;
14
15
var zipUtility = require ( 'azure-pipelines-tasks-webdeployment-common/ziputility.js' ) ;
@@ -204,7 +205,8 @@ export class KuduServiceUtility {
204
205
}
205
206
206
207
if ( ! packageType ) {
207
- packageType = 'Zip'
208
+ tl . debug ( 'No package type provided. Defaulting to zip package type' ) ;
209
+ packageType = PackageType [ PackageType . zip ] ;
208
210
}
209
211
210
212
let queryParameters : Array < string > = [
@@ -246,7 +248,7 @@ export class KuduServiceUtility {
246
248
await this . _appServiceKuduService . zipDeploy ( packagePath , queryParameters ) ;
247
249
248
250
console . log ( tl . loc ( 'PackageDeploymentSuccess' ) ) ;
249
- console . log ( "NOTE: Run From Package makes wwwroot read-only, so you will receive an error when writing files to this directory." ) ;
251
+ console . log ( tl . loc ( 'RunFromPackageAppsetting' ) ) ;
250
252
251
253
}
252
254
catch ( error ) {
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { KUDU_DEPLOYMENT_CONSTANTS } from 'azure-pipelines-tasks-azure-arm-rest/
9
9
import { Kudu } from 'azure-pipelines-tasks-azure-arm-rest/azure-arm-app-service-kudu' ;
10
10
11
11
import webClient = require( 'azure-pipelines-tasks-azure-arm-rest/webClient' ) ;
12
+ import { PackageType } from 'azure-pipelines-tasks-webdeployment-common/packageUtility' ;
12
13
13
14
var deployUtility = require ( 'azure-pipelines-tasks-webdeployment-common/utility.js' ) ;
14
15
var zipUtility = require ( 'azure-pipelines-tasks-webdeployment-common/ziputility.js' ) ;
@@ -204,7 +205,8 @@ export class KuduServiceUtility {
204
205
}
205
206
206
207
if ( ! packageType ) {
207
- packageType = 'Zip'
208
+ tl . debug ( 'No package type provided. Defaulting to zip package type' ) ;
209
+ packageType = PackageType [ PackageType . zip ] ;
208
210
}
209
211
210
212
let queryParameters : Array < string > = [
@@ -246,7 +248,7 @@ export class KuduServiceUtility {
246
248
await this . _appServiceKuduService . zipDeploy ( packagePath , queryParameters ) ;
247
249
248
250
console . log ( tl . loc ( 'PackageDeploymentSuccess' ) ) ;
249
- console . log ( "NOTE: Run From Package makes wwwroot read-only, so you will receive an error when writing files to this directory." ) ;
251
+ console . log ( tl . loc ( 'RunFromPackageAppsetting' ) ) ;
250
252
251
253
}
252
254
catch ( error ) {
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { KUDU_DEPLOYMENT_CONSTANTS } from 'azure-pipelines-tasks-azure-arm-rest/
9
9
import { Kudu } from 'azure-pipelines-tasks-azure-arm-rest/azure-arm-app-service-kudu' ;
10
10
11
11
import webClient = require( 'azure-pipelines-tasks-azure-arm-rest/webClient' ) ;
12
+ import { PackageType } from 'azure-pipelines-tasks-webdeployment-common/packageUtility' ;
12
13
13
14
var deployUtility = require ( 'azure-pipelines-tasks-webdeployment-common/utility.js' ) ;
14
15
var zipUtility = require ( 'azure-pipelines-tasks-webdeployment-common/ziputility.js' ) ;
@@ -204,7 +205,8 @@ export class KuduServiceUtility {
204
205
}
205
206
206
207
if ( ! packageType ) {
207
- packageType = 'Zip'
208
+ tl . debug ( 'No package type provided. Defaulting to zip package type' ) ;
209
+ packageType = PackageType [ PackageType . zip ] ;
208
210
}
209
211
210
212
let queryParameters : Array < string > = [
@@ -246,7 +248,7 @@ export class KuduServiceUtility {
246
248
await this . _appServiceKuduService . zipDeploy ( packagePath , queryParameters ) ;
247
249
248
250
console . log ( tl . loc ( 'PackageDeploymentSuccess' ) ) ;
249
- console . log ( "NOTE: Run From Package makes wwwroot read-only, so you will receive an error when writing files to this directory." ) ;
251
+ console . log ( tl . loc ( 'RunFromPackageAppsetting' ) ) ;
250
252
251
253
}
252
254
catch ( error ) {
You can’t perform that action at this time.
0 commit comments