Skip to content

Commit 0890aef

Browse files
committed
Update pr-validation.yml for Azure Pipelines
1 parent 6347c0a commit 0890aef

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

azure_pipelines/pr-validation.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ trigger:
1717

1818
# Define parallel jobs that run build script for specified targets
1919
jobs:
20+
- job: 'PRAssitant'
21+
pool:
22+
vmImage: 'ubuntu-latest'
23+
timeOutInMinutes: 20
24+
displayName: Clone PR in ADO
25+
steps:
26+
- bash: |
27+
echo "Source branch : $(System.PullRequest.SourceBranch) Target branch : $(System.PullRequest.targetBranchName) "
28+
az pipelines run --project 'IDDP' --id 2727 --branch 'ameyapat/clone-pr-hackathon' --organization 'https://identitydivision.visualstudio.com' --variables "source_branch=$(System.PullRequest.SourceBranch) target_branch=$(System.PullRequest.targetBranchName)"
29+
displayName: 'Trigger pipeline in ADO clone for PRAssistant bot'
30+
env:
31+
AZURE_DEVOPS_EXT_PAT: $(System.AccessToken)
32+
failOnStderr: false
2033
- job: 'Validate_Pull_Request'
2134
strategy:
2235
maxParallel: 3
@@ -33,13 +46,6 @@ jobs:
3346
timeOutInMinutes: 30
3447

3548
steps:
36-
- bash: |
37-
echo "Source branch : $(System.PullRequest.SourceBranch) Target branch : $(System.PullRequest.targetBranchName) "
38-
az pipelines run --project 'IDDP' --id 2727 --branch 'ameyapat/clone-pr-hackathon' --organization 'https://identitydivision.visualstudio.com' --variables "source_branch=$(System.PullRequest.SourceBranch) target_branch=$(System.PullRequest.targetBranchName)"
39-
displayName: 'Trigger pipeline in ADO clone for PRAssistant bot'
40-
env:
41-
AZURE_DEVOPS_EXT_PAT: $(System.AccessToken)
42-
failOnStderr: false
4349
- script: |
4450
/bin/bash -c "sudo xcode-select -s /Applications/Xcode_15.4.app"
4551
displayName: 'Switch to use Xcode 15.4'

0 commit comments

Comments
 (0)