@@ -132,6 +132,41 @@ stages:
132132 tasks : msal:testLocalDebugUnitTest -Plabtest -PlabSecret=$(LabVaultAppCert) -ProbolectricSdkVersion=${{variables.robolectricSdkVersion}} -PmockApiUrl=$(MOCK_API_URL) -PnativeAuthConfigString=$(NATIVE_AUTH_CONFIG_STRING)
133133 jdkArchitecture : x64
134134 jdkVersionOption : " 1.17"
135+ # msalautomationapp
136+ - job : msalAutomationAppValidation
137+ displayName : MSAL Automation App
138+ dependsOn :
139+ - setupBranch
140+ variables :
141+ commonBranch : $[ dependencies.setupBranch.outputs['setvarStep.commonBranch'] ] # map in the variable
142+ condition : and( succeeded(), not(contains(variables['prLabels'], variables['skipConsumerValidationLabel'])) )
143+ steps :
144+ - checkout : msal
145+ displayName : Checkout msal repository
146+ clean : true
147+ submodules : recursive
148+ persistCredentials : True
149+ - task : CmdLine@2
150+ displayName : Checkout common submodule $(commonBranch)
151+ inputs :
152+ script : |
153+ git fetch
154+ git checkout $(commonBranch)
155+ git pull
156+ git status
157+ git rev-parse HEAD
158+ workingDirectory : $(Agent.BuildDirectory)/s/common
159+ - bash : |
160+ echo "##vso[task.setvariable variable=ENV_VSTS_MVN_CRED_USERNAME]VSTS"
161+ echo "##vso[task.setvariable variable=ENV_VSTS_MVN_CRED_ACCESSTOKEN]$(System.AccessToken)"
162+ displayName: 'Set VSTS Fields in Environment'
163+ - template : ../templates/steps/automation-cert.yml
164+ - task : Gradle@3
165+ displayName : Assemble msalautomationapp
166+ inputs :
167+ jdkArchitecture : x64
168+ jdkVersionOption : " 1.17"
169+ tasks : clean msalautomationapp:assembleLocal
135170 # broker
136171 - job : brokerValidation
137172 displayName : Broker
@@ -180,3 +215,45 @@ stages:
180215 tasks : AADAuthenticator:localDebugAADAuthenticatorUnitTestCoverageReport --build-cache --info -Plabtest -PlabSecret=$(LabVaultAppCert) -ProbolectricSdkVersion=${{variables.robolectricSdkVersion}} -PpowerLiftApiKey=$(powerliftApiKey) -PcodeCoverageEnabled=true ${{variables.shouldSkipLongRunningTest}}
181216 jdkArchitecture : x64
182217 jdkVersionOption : " 1.17"
218+ # brokerautomationapp
219+ - job : brokerAutomationAppValidation
220+ displayName : Broker Automation App
221+ cancelTimeoutInMinutes : 1
222+ timeoutInMinutes : 120
223+ dependsOn :
224+ - setupBranch
225+ variables :
226+ commonBranch : $[ dependencies.setupBranch.outputs['setvarStep.commonBranch'] ] # map in the variable
227+ condition : and( succeeded(), not(contains(variables['prLabels'], variables['skipConsumerValidationLabel'])) )
228+ pool :
229+ name : MSSecurity-1ES-Build-Agents-Pool
230+ image : MSSecurity-1ES-Windows-2022
231+ os : windows
232+ steps :
233+ - checkout : broker
234+ displayName : Checkout broker repository
235+ clean : true
236+ submodules : recursive
237+ persistCredentials : True
238+ - bash : |
239+ echo "##vso[task.setvariable variable=ENV_VSTS_MVN_CRED_USERNAME]VSTS"
240+ echo "##vso[task.setvariable variable=ENV_VSTS_MVN_CRED_ACCESSTOKEN]$(System.AccessToken)"
241+ displayName: 'Set VSTS Fields in Environment'
242+ - template : ../templates/steps/automation-cert.yml
243+ - task : CmdLine@2
244+ displayName : Checkout common submodule $(commonBranch)
245+ inputs :
246+ script : |
247+ git fetch
248+ git checkout $(commonBranch)
249+ git pull
250+ git status
251+ git rev-parse HEAD
252+ workingDirectory : $(Agent.BuildDirectory)/s/common
253+ - task : Gradle@3
254+ displayName : Assemble brokerautomationapp
255+ inputs :
256+ tasks : brokerautomationapp:clean brokerautomationapp:assembleLocal --build-cache --info
257+ publishJUnitResults : false
258+ jdkArchitecture : x64
259+ jdkVersionOption : " 1.17"
0 commit comments