-
Notifications
You must be signed in to change notification settings - Fork 1
/
pipeline.yaml
57 lines (53 loc) · 1.47 KB
/
pipeline.yaml
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
45
46
47
48
49
50
51
52
53
54
55
56
- project:
name: pipeline-throttle
jobs:
- "pipeline-throttle":
- job-template:
name: "pipeline-throttle"
project-type: pipeline
concurrent: true
properties:
- throttle:
max-total: 5
option: project
description: |
Example pipeline using JMS CI trigger, podTemplate and throttling
dsl: |
def label = "{name}"
timeout(time: 20, unit: 'MINUTES') {{
podTemplate(
name: '{name}',
label: label,
cloud: 'openshift',
idleMinutes: 1,
containers: [
containerTemplate(
name: 'jnlp',
image: 'worker-image:latest',
alwaysPullImage: true,
ttyEnabled: true,
// execute entrypoint from slave image
command: '',
args: '',
resourceRequestMemory: '256Mi',
resourceLimitMemory: '768Mi',
resourceRequestCpu: '100m',
resourceLimitCpu: '200m'
),
]
){{
node(label) {{
timestamps {{
stage('Show AMQ MESSAGE') {{
sh '''
echo $CI_MESSAGE
'''
}}
}}
}}
}}
}}
triggers:
- ci-trigger:
override-topic: Consumer.amq-client.prod.VirtualTopic.service.event.>
jms-selector: "method = 'important'"