forked from microsoft/genaiops-promptflow-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnamed_entity_recognition_pr_dev
44 lines (41 loc) · 1.67 KB
/
named_entity_recognition_pr_dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
pipeline {
agent any
parameters {
string(name: 'env_name', defaultValue: 'pr', description: 'Execution Environment: pr, dev or test')
string(name: 'use_case_base_path', defaultValue: 'named_entity_recognition', description: 'The flow usecase to execute')
string(name: 'rg_name', description: 'Azure Resource Group Name')
string(name: 'ws_name', description: 'AzureML Workspace Name')
}
// Trigger the pipeline on PR opened, reopened or synchronized
triggers {
GenericTrigger(
genericVariables: [
[key: 'action', value: '$.action']
],
genericHeaderVariables: [
],
causeString: 'Triggered on $action',
tokenCredentialId: 'WEBHOOK-TOKEN-SECRET',
printContributedVariables: true,
printPostContent: false,
silentResponse: false,
regexpFilterText: '$action',
regexpFilterExpression: '^(opened|reopened|synchronize)$'
)
}
// Trigger Platform PR Dev Pipeline
stages {
stage('Trigger Platform PR Dev Pipeline') {
steps {
script {
build job: 'platform_pr_dev', parameters: [
string(name: 'env_name', value: "${params.env_name}"),
string(name: 'use_case_base_path', value: "${params.use_case_base_path}"),
string(name: 'rg_name', value: "${params.rg_name}"),
string(name: 'ws_name', value: "${params.ws_name}")
]
}
}
}
}
}