Skip to content

Commit e36d5c1

Browse files
committed
add pipelines tab
1 parent 850cc46 commit e36d5c1

File tree

3 files changed

+78
-0
lines changed

3 files changed

+78
-0
lines changed

articles/app-service/includes/configure-language-java-data-sources/configure-jboss-mysql.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,32 @@ ms.author: cephalin
7474
</deployment>
7575
```
7676

77+
# [Azure Pipelines](#tab/pipelines)
78+
79+
```YAML
80+
variables: # Set <subscription-id>, <resource-group-name>, <app-name> for your environment
81+
- name: SUBSCRIPTION_ID
82+
value: <subscription-id>
83+
- name: RESOURCE_GROUP_NAME
84+
value: <resource-group-name>
85+
- name: APP_NAME
86+
value: <app-name>
87+
88+
steps:
89+
- task: AzureCLI@2
90+
displayName: Azure CLI
91+
inputs:
92+
azureSubscription: $(SUBSCRIPTION_ID)
93+
scriptType: bash
94+
scriptLocation: inlineScript
95+
inlineScript: |
96+
# The lib type uploads to /home/site/libs by default.
97+
az webapp deploy --resource-group $(RESOURCE_GROUP_NAME) --name $(APP_NAME) --src-path mysql-connector-j-9.1.0.jar --target-path mysql-connector-j-9.1.0.jar --type lib
98+
az webapp deploy --resource-group $(RESOURCE_GROUP_NAME) --name $(APP_NAME) --src-path jboss_cli_commands.cli --target-path /home/site/scripts/jboss_cli_commands.cli --type static
99+
# The startup type uploads to /home/site/scripts/startup.sh by default.
100+
az webapp deploy --resource-group $(RESOURCE_GROUP_NAME) --name $(APP_NAME) --src-path startup.sh --type startup
101+
```
102+
77103
---
78104

79105
To confirm that the data source was added to the JBoss server, SSH into your webapp and run `$JBOSS_HOME/bin/jboss-cli.sh --connect`. Once you're connected to JBoss, run the `/subsystem=datasources:read-resource` to print a list of the data sources.

articles/app-service/includes/configure-language-java-data-sources/configure-jboss-postgresql.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,32 @@ ms.author: cephalin
7474
</deployment>
7575
```
7676

77+
# [Azure Pipelines](#tab/pipelines)
78+
79+
```YAML
80+
variables: # Set <subscription-id>, <resource-group-name>, <app-name> for your environment
81+
- name: SUBSCRIPTION_ID
82+
value: <subscription-id>
83+
- name: RESOURCE_GROUP_NAME
84+
value: <resource-group-name>
85+
- name: APP_NAME
86+
value: <app-name>
87+
88+
steps:
89+
- task: AzureCLI@2
90+
displayName: Azure CLI
91+
inputs:
92+
azureSubscription: $(SUBSCRIPTION_ID)
93+
scriptType: bash
94+
scriptLocation: inlineScript
95+
inlineScript: |
96+
# The lib type uploads to /home/site/libs by default.
97+
az webapp deploy --resource-group $(RESOURCE_GROUP_NAME) --name $(APP_NAME) --src-path postgresql-42.7.4.jar --target-path postgresql-42.7.4.jar --type lib
98+
az webapp deploy --resource-group $(RESOURCE_GROUP_NAME) --name $(APP_NAME) --src-path jboss_cli_commands.cli --target-path /home/site/scripts/jboss_cli_commands.cli --type static
99+
# The startup type uploads to /home/site/scripts/startup.sh by default.
100+
az webapp deploy --resource-group $(RESOURCE_GROUP_NAME) --name $(APP_NAME) --src-path startup.sh --type startup
101+
```
102+
77103
---
78104

79105
To confirm that the data source was added to the JBoss server, SSH into your webapp and run `$JBOSS_HOME/bin/jboss-cli.sh --connect`. Once you're connected to JBoss, run the `/subsystem=datasources:read-resource` to print a list of the data sources.

articles/app-service/includes/configure-language-java-data-sources/configure-jboss-sql-database.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,32 @@ ms.author: cephalin
7474
</deployment>
7575
```
7676

77+
# [Azure Pipelines](#tab/pipelines)
78+
79+
```YAML
80+
variables: # Set <subscription-id>, <resource-group-name>, <app-name> for your environment
81+
- name: SUBSCRIPTION_ID
82+
value: <subscription-id>
83+
- name: RESOURCE_GROUP_NAME
84+
value: <resource-group-name>
85+
- name: APP_NAME
86+
value: <app-name>
87+
88+
steps:
89+
- task: AzureCLI@2
90+
displayName: Azure CLI
91+
inputs:
92+
azureSubscription: $(SUBSCRIPTION_ID)
93+
scriptType: bash
94+
scriptLocation: inlineScript
95+
inlineScript: |
96+
# The lib type uploads to /home/site/libs by default.
97+
az webapp deploy --resource-group $(RESOURCE_GROUP_NAME) --name $(APP_NAME) --src-path mssql-jdbc-11.2.3.jre17.jar --target-path mssql-jdbc-11.2.3.jre17.jar --type lib
98+
az webapp deploy --resource-group $(RESOURCE_GROUP_NAME) --name $(APP_NAME) --src-path jboss_cli_commands.cli --target-path /home/site/scripts/jboss_cli_commands.cli --type static
99+
# The startup type uploads to /home/site/scripts/startup.sh by default.
100+
az webapp deploy --resource-group $(RESOURCE_GROUP_NAME) --name $(APP_NAME) --src-path startup.sh --type startup
101+
```
102+
77103
---
78104

79105
To confirm that the data source was added to the JBoss server, SSH into your webapp and run `$JBOSS_HOME/bin/jboss-cli.sh --connect`. Once you're connected to JBoss, run the `/subsystem=datasources:read-resource` to print a list of the data sources.

0 commit comments

Comments
 (0)