Skip to content

Commit 339f17e

Browse files
committed
[CI] Check contributor user ID
Check if a user ID of the submitter is in the Contributor Agreement file.
1 parent 2308fb0 commit 339f17e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

azure-pipelines.yml

+15
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,22 @@ trigger:
33
- release/*
44

55
jobs:
6+
- job: CLA
7+
timeoutInMinutes: 5
8+
pool:
9+
vmImage: 'ubuntu-latest'
10+
11+
steps:
12+
- script: |
13+
echo Checking contribution agreement for $USER
14+
tail -n +36 Contribution\ Agreement.md | awk -F\| '{print $3}' | grep -wq $USER
15+
displayName: "Check Contributor Agreement"
16+
env:
17+
USER: $(Build.RequestedFor)
18+
619
- job: CMake
720
timeoutInMinutes: 120
21+
dependsOn: CLA
822
strategy:
923
maxParallel: 6
1024
matrix:
@@ -77,6 +91,7 @@ jobs:
7791
7892
- job: MSVC
7993
timeoutInMinutes: 120
94+
dependsOn: CLA
8095
pool:
8196
vmImage: 'windows-latest'
8297
strategy:

0 commit comments

Comments
 (0)