Skip to content

Commit 16b1bc8

Browse files
p3dr0rvCopilotCopilot
authored
Add msalautomationapp validation job to build-consumers pipeline, Fixes AB#3587778 (#3106)
This pull request adds a new validation job for the MSAL Automation App to the Azure Pipelines configuration. This ensures that the automation app is built and validated as part of the pull request process, improving test coverage and reliability for changes impacting this component. **Pipeline enhancements:** * Added a new `msalAutomationAppValidation` job to `azure-pipelines/pull-request-validation/build-consumers.yml` that checks out the MSAL repository and its submodules, ensures the proper branch is used for the common submodule, sets up automation certificates, and assembles the `msalautomationapp` using Gradle. [AB#3587778](https://identitydivision.visualstudio.com/fac9d424-53d2-45c0-91b5-ef6ba7a6bf26/_workitems/edit/3587778) --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent b9fc66b commit 16b1bc8

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

azure-pipelines/pull-request-validation/build-consumers.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,37 @@ 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+
- template: ../templates/steps/automation-cert.yml
160+
- task: Gradle@3
161+
displayName: Assemble msalautomationapp
162+
inputs:
163+
jdkArchitecture: x64
164+
jdkVersionOption: "1.17"
165+
tasks: clean msalautomationapp:assembleLocal
135166
# broker
136167
- job: brokerValidation
137168
displayName: Broker

0 commit comments

Comments
 (0)