Skip to content

Commit 26a4790

Browse files
p3dr0rvCopilotCopilot
authored
Add PR validation pipeline for msalautomationapp assembleLocal, Fixes AB#3587778 (#2507)
Adds a new PR validation pipeline that runs `msalautomationapp:assembleLocal` to validate the msalautomationapp project builds successfully. https://identitydivision.visualstudio.com/Engineering/_build?definitionId=3081&_a=summary [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 5ee0dd1 commit 26a4790

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# File: azure-pipelines\pull-request-validation\pr-msalautomationapp.yml
2+
# Description: Assemble msalautomationapp to validate the project builds
3+
# Feed authentication variables are set by this pipeline at runtime:
4+
# - ENV_VSTS_MVN_CRED_USERNAME = VSTS
5+
# - ENV_VSTS_MVN_CRED_ACCESSTOKEN = $(System.AccessToken)
6+
# https://docs.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate
7+
name: $(date:yyyyMMdd)$(rev:.r)
8+
trigger: none
9+
variables:
10+
- name: BuildParameters.jdkVersion
11+
value: 1.17
12+
- name: BuildParameters.jdkArchitecture
13+
value: x64
14+
15+
resources:
16+
repositories:
17+
- repository: common
18+
type: github
19+
name: AzureAD/microsoft-authentication-library-common-for-android
20+
ref: dev
21+
endpoint: ANDROID_GITHUB
22+
23+
pool:
24+
vmImage: 'windows-2022'
25+
stages:
26+
- stage: build
27+
displayName: Build msalautomationapp
28+
jobs:
29+
- job: assemble
30+
displayName: Assemble Local
31+
cancelTimeoutInMinutes: 1
32+
steps:
33+
- checkout: self
34+
clean: true
35+
submodules: recursive
36+
persistCredentials: True
37+
- bash: |
38+
echo "##vso[task.setvariable variable=ENV_VSTS_MVN_CRED_USERNAME]VSTS"
39+
echo "##vso[task.setvariable variable=ENV_VSTS_MVN_CRED_ACCESSTOKEN]$(System.AccessToken)"
40+
displayName: 'Set VSTS Fields in Environment'
41+
- template: azure-pipelines/templates/steps/automation-cert.yml@common
42+
- task: JavaToolInstaller@0
43+
displayName: Use Java 17
44+
inputs:
45+
versionSpec: '17'
46+
jdkArchitectureOption: x64
47+
jdkSourceOption: PreInstalled
48+
- task: Gradle@2
49+
name: Gradle1
50+
displayName: Assemble msalautomationapp Local
51+
inputs:
52+
tasks: clean msalautomationapp:assembleLocal
53+
publishJUnitResults: false
54+
jdkVersion: $(BuildParameters.jdkVersion)
55+
jdkArchitecture: $(BuildParameters.jdkArchitecture)
56+
sqGradlePluginVersion: 2.0.1

0 commit comments

Comments
 (0)