Skip to content

Commit 3580523

Browse files
authored
Azure App Service - hotfix JAVA issues (151) (#10383)
* resolved merge conflicts * Azure Web App Linux - include image name in runtime stack (#10372) * include image name in runtime stack * added support for parent task * bump up task to correct version * remove package-lock
1 parent 3e68690 commit 3580523

File tree

16 files changed

+40
-56
lines changed

16 files changed

+40
-56
lines changed

Tasks/AzureFunctionAppContainerV1/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": {
1919
"Major": 1,
2020
"Minor": 0,
21-
"Patch": 8
21+
"Patch": 11
2222
},
2323
"minimumAgentVersion": "2.104.1",
2424
"groups": [

Tasks/AzureFunctionAppV1/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": {
1919
"Major": 1,
2020
"Minor": 0,
21-
"Patch": 11
21+
"Patch": 10
2222
},
2323
"minimumAgentVersion": "2.104.1",
2424
"groups": [

Tasks/AzureFunctionAppV1/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": {
1919
"Major": 1,
2020
"Minor": 0,
21-
"Patch": 11
21+
"Patch": 10
2222
},
2323
"minimumAgentVersion": "2.104.1",
2424
"groups": [

Tasks/AzureRmWebAppDeploymentV4/deploymentProvider/BuiltInLinuxWebAppDeploymentProvider.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,6 @@ export class BuiltInLinuxWebAppDeploymentProvider extends AzureRmWebAppDeploymen
5757
case PackageType.jar:
5858
tl.debug("Initiated deployment via kudu service for webapp jar package : "+ this.taskParams.Package.getPath());
5959
var folderPath = await webCommonUtility.generateTemporaryFolderForDeployment(false, this.taskParams.Package.getPath(), PackageType.jar);
60-
var jarName = webCommonUtility.getFileNameFromPath(this.taskParams.Package.getPath(), ".jar");
61-
var destRootPath = "/home/site/wwwroot/";
62-
var script = 'java -jar "' + destRootPath + jarName + '.jar' + '" --server.port=80';
63-
var initScriptFileName = "startupscript_" + jarName + ".sh";
64-
var initScriptFile = path.join(folderPath, initScriptFileName);
65-
var destInitScriptPath = destRootPath + initScriptFileName;
66-
if(!this.taskParams.AppSettings) {
67-
this.taskParams.AppSettings = "-INIT_SCRIPT " + destInitScriptPath;
68-
}
69-
if(this.taskParams.AppSettings.indexOf("-INIT_SCRIPT") < 0) {
70-
this.taskParams.AppSettings += " -INIT_SCRIPT " + destInitScriptPath;
71-
}
72-
this.taskParams.AppSettings = this.taskParams.AppSettings.trim();
73-
tl.writeFile(initScriptFile, script, { encoding: 'utf8' });
7460
var output = await webCommonUtility.archiveFolderForDeployment(false, folderPath);
7561
var webPackage = output.webDeployPkg;
7662
tl.debug("Initiated deployment via kudu service for webapp jar package : "+ webPackage);

Tasks/AzureRmWebAppDeploymentV4/operations/AzureAppServiceUtility.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ export class AzureAppServiceUtility {
204204

205205
public async updateStartupCommandAndRuntimeStack(runtimeStack: string, startupCommand?: string): Promise<void> {
206206
var configDetails = await this._appService.getConfiguration();
207-
startupCommand = (!!startupCommand) ? startupCommand : "";
208-
var linuxFxVersion: string = configDetails.properties.linuxFxVersion;
209207
var appCommandLine: string = configDetails.properties.appCommandLine;
208+
startupCommand = (!!startupCommand) ? startupCommand : appCommandLine;
209+
var linuxFxVersion: string = configDetails.properties.linuxFxVersion;
210210
runtimeStack = (!!runtimeStack) ? runtimeStack : linuxFxVersion;
211211

212212
if (appCommandLine != startupCommand || runtimeStack != linuxFxVersion) {

Tasks/AzureRmWebAppDeploymentV4/task.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": {
1919
"Major": 4,
2020
"Minor": 3,
21-
"Patch": 24
21+
"Patch": 25
2222
},
2323
"releaseNotes": "What's new in version 4.*<br />Supports Zip Deploy, Run From Package, War Deploy [Details here](https://aka.ms/appServiceDeploymentMethods)<br />Supports App Service Environments<br />Improved UI for discovering different App service types supported by the task<br/>Run From Package is the preferred deployment method, which makes files in wwwroot folder read-only<br/>Click [here](https://aka.ms/azurermwebdeployreadme) for more information.",
2424
"minimumAgentVersion": "2.104.1",
@@ -477,7 +477,7 @@
477477
"parameters": {
478478
"osTypeSelected": "Linux"
479479
},
480-
"resultTemplate": "{\"Value\":\"{{{ runtimeVersion }}}\",\"DisplayValue\":\"{{{ displayVersion }}}\"}"
480+
"resultTemplate": "{\"Value\":\"{{{ runtimeVersion }}}\",\"DisplayValue\":\"{{{ displayVersion }}} ({{{ runtimeVersion }}})\"}"
481481
}
482482
],
483483
"instanceNameFormat": "Azure App Service Deploy: $(WebAppName)",

Tasks/AzureRmWebAppDeploymentV4/task.loc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": {
1919
"Major": 4,
2020
"Minor": 3,
21-
"Patch": 24
21+
"Patch": 25
2222
},
2323
"releaseNotes": "ms-resource:loc.releaseNotes",
2424
"minimumAgentVersion": "2.104.1",
@@ -477,7 +477,7 @@
477477
"parameters": {
478478
"osTypeSelected": "Linux"
479479
},
480-
"resultTemplate": "{\"Value\":\"{{{ runtimeVersion }}}\",\"DisplayValue\":\"{{{ displayVersion }}}\"}"
480+
"resultTemplate": "{\"Value\":\"{{{ runtimeVersion }}}\",\"DisplayValue\":\"{{{ displayVersion }}} ({{{ runtimeVersion }}})\"}"
481481
}
482482
],
483483
"instanceNameFormat": "ms-resource:loc.instanceNameFormat",

Tasks/AzureWebAppContainerV1/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": {
1919
"Major": 1,
2020
"Minor": 0,
21-
"Patch": 10
21+
"Patch": 11
2222
},
2323
"minimumAgentVersion": "2.104.1",
2424
"groups": [

Tasks/AzureWebAppContainerV1/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"version": {
1919
"Major": 1,
2020
"Minor": 0,
21-
"Patch": 10
21+
"Patch": 11
2222
},
2323
"minimumAgentVersion": "2.104.1",
2424
"groups": [

Tasks/AzureWebAppV1/Strings/resources.resjson/en-US/resources.resjson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
"loc.messages.FailedToUpdateAppServiceApplicationSettings": "Failed to update App service '%s' application settings. Error: %s",
152152
"loc.messages.UpdatingAppServiceConfigurationSettings": "Updating App Service Configuration settings. Data: %s",
153153
"loc.messages.UpdatedAppServiceConfigurationSettings": "Updated App Service Configuration settings.",
154-
"loc.messages.UpdatingAppServiceApplicationSettings": "Updating App Service Application settings. Data: %s",
154+
"loc.messages.UpdatingAppServiceApplicationSettings": "Updating App Service Application settings. Adding: %s. Deleting : %s",
155155
"loc.messages.UpdatedAppServiceApplicationSettings": "Updated App Service Application settings and Kudu Application settings.",
156156
"loc.messages.MultipleResourceGroupFoundForAppService": "Multiple resource group found for App Service '%s'.",
157157
"loc.messages.PackageDeploymentUsingZipDeployFailed": "Package deployment using ZIP Deploy failed. Refer logs for more details.",

0 commit comments

Comments
 (0)