Skip to content

Commit 4583958

Browse files
committed
On branch e2etest: support updating with .jar application in post deployment.
Signed-off-by: galiacheng <[email protected]> Changes to be committed: modified: weblogic-azure-aks/src/main/arm/scripts/updateApplications.sh modified: weblogic-azure-aks/src/main/bicep/modules/updateWebLogicApplications.bicep
1 parent 2ee42f0 commit 4583958

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

weblogic-azure-aks/src/main/arm/scripts/updateApplications.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function get_app_sas_url() {
129129
while [ $index -lt $appNumber ]; do
130130
appName=${args[${index}]}
131131
echo "app package file name: ${appName}"
132-
if [[ "$appName" == *".war" || "$appName" == *".ear" ]]; then
132+
if [[ "$appName" == *".war" || "$appName" == *".ear" || "$appName" == *".jar" ]]; then
133133
appSaSUrl=$(az storage blob url --container-name ${appContainerName} \
134134
--name ${appName} \
135135
--account-name ${appStorageAccountName} \

weblogic-azure-aks/src/main/bicep/modules/updateWebLogicApplications.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Parameters
1616
- aksClusterRGName: Name of resource group that contains the (AKS) instance, probably the resource group you are working on. It's recommended to run this sript with the same resource group that runs AKS.
1717
- aksClusterName: Name of the AKS instance that runs the WebLogic cluster.
1818
- appPackageUrls: String array of Java EE applciation location, which can be downloaded using "curl". Currently, only support urls of Azure Storage Account blob.
19-
- appPackageFromStorageBlob: Storage blob that contains Java EE applciations, the script will download all the .war and .ear file from that blob. Do not include white space in the file name.
19+
- appPackageFromStorageBlob: Storage blob that contains Java EE applciations, the script will download all the .war, .jar and .ear file from that blob. Do not include white space in the file name.
2020
- storageAccountName: Storage account name.
2121
- containerName: container name.
2222
- identity: Azure user managed identity used, make sure the identity has permission to create/update/delete Azure resources. It's recommended to assign "Contributor" role.
@@ -42,7 +42,7 @@ param aksClusterRGName string = ''
4242
@description('Name of an existing AKS cluster.')
4343
param aksClusterName string = ''
4444

45-
@description('Download all the .war and .ear packages from the specified storage blob. You can specify the applciation using "appPackageUrls" and "appPackageFromStorageBlob", please do not specify the same applciation in both parameters.')
45+
@description('Download all the .war .jar and .ear packages from the specified storage blob. You can specify the applciation using "appPackageUrls" and "appPackageFromStorageBlob", please do not specify the same applciation in both parameters.')
4646
param appPackageFromStorageBlob object = {
4747
storageAccountName: 'stg-contoso'
4848
containerName: 'container-contoso'

0 commit comments

Comments
 (0)