@@ -71,7 +71,9 @@ stages:
71
71
- deployment : DeploySpringbootApp
72
72
displayName : ' Azure Web App'
73
73
variables :
74
- buildjarfilename : $[ stageDependencies.Build.WebApp.outputs['pomvariable.jarfilename'] ]
74
+ - group : azureSearchOpenAiDemoJavaDev
75
+ - name : buildjarfilename
76
+ value : $[ stageDependencies.Build.WebApp.outputs['pomvariable.jarfilename'] ]
75
77
environment : ' dev'
76
78
strategy :
77
79
runOnce :
@@ -82,7 +84,7 @@ stages:
82
84
inputs :
83
85
azureSubscription : ' <azureSubscriptionServiceConnection>'
84
86
appType : ' webAppLinux'
85
- appName : ' <appServiceName>
87
+ appName : ' $(azureAppServiceName) '
86
88
package : ' $(Pipeline.Workspace)/**/$(buildjarfilename).jar'
87
89
runtimeStack : ' JAVA|17-java17'
88
90
startUpCommand : ' java -jar /home/site/wwwroot/$(buildjarfilename).jar'
@@ -91,7 +93,10 @@ stages:
91
93
condition : eq(variables['Build.SourceBranch'], 'refs/heads/main')
92
94
dependsOn : Build
93
95
variables :
94
- buildjarfilename : $[ stageDependencies.Build.WebApp.outputs['pomvariable.jarfilename'] ]
96
+ - group : azureSearchOpenAiDemoJavaProd
97
+ - name : buildjarfilename
98
+ value : $[ stageDependencies.Build.WebApp.outputs['pomvariable.jarfilename'] ]
99
+
95
100
jobs :
96
101
- deployment : DeploySpringbootApp
97
102
displayName : ' Azure Web App'
@@ -105,7 +110,7 @@ stages:
105
110
inputs :
106
111
azureSubscription : ' <azureSubscriptionServiceConnection>'
107
112
appType : ' webAppLinux'
108
- appName : ' <appServiceName> '
113
+ appName : ' $(azureAppServiceName) '
109
114
package : ' $(Pipeline.Workspace)/**/$(buildjarfilename).jar'
110
115
runtimeStack : ' JAVA|17-java17'
111
116
startUpCommand : ' java -jar /home/site/wwwroot/$(buildjarfilename).jar'
0 commit comments