-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathendToEnd.job
115 lines (107 loc) · 4.57 KB
/
endToEnd.job
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
job "endToEnd" do |j|
j.description = "DESCRIPTION"
j.node = "NODE"
j.block_upstream = true
j.block_downstream = false
j.quiet_period = 42
j.concurrent = true
j.disabled = true
j.axes << slave(:arch, %w{i386 amd64})
j.parameters << string(name: "STRING_PARAM", default: "DEFAULT VALUE", description: "DESCRIPTION")
j.parameters << validating_string(name: "VALIDATING",
default: "DEFAULT",
description: "DESCRIPTION",
regex: "REGEX",
msg: "MESSAGE")
j.properties << priority_sorter(priority: 150)
j.properties << throttle(max_per_node: 2,
max_total: 4,
option: "category",
categories: %w{CAT1 CAT2})
j.scm << git(url: "URL", branches: %w{master dev}, wipe_workspace: false)
j.scm << store(script: "SCRIPT",
repository: "REPO",
version_regex: "REGEX",
parcel_builder_file: "FILENAME",
minimum_blessing: "BLESSING") do |pundles|
pundles << package("PACKAGE") << bundle("BUNDLE")
end
j.triggers << gitlab(
trigger_push: true,
trigger_merge_request: false,
trigger_accepted_merge_request: true,
trigger_closed_merge_request: false,
trigger_open_merge_request_push: "source",
trigger_note: true,
note_regex: "plz build",
ci_skip: false,
wip_skip: true,
set_build_description: false,
add_note_merge_request: true,
add_vote_merge_request: false,
accept_merge_request_on_success: true,
add_ci_message: false,
allow_all_branches: true,
branch_filter_type: "All",
include_branches: %w{branch1 branch2},
exclude_branches: %w{branch3 branch4},
target_branch_regex: "branch.*",
secret_token: "s3kr3t"
)
j.triggers << pollscm(cron: "INTERVAL", ignore_post_commit_hooks: true)
j.triggers << pollurl(cron: "CRON", polling_node: "NODE") do |urls|
urls << url("URL",
proxy: false,
timeout: 442,
username: "USERNAME",
password: "PASSWORD",
check_status: 202,
check_etag: false,
check_date: true) do |content|
content << simple
content << json("JSON_PATH1", "JSON_PATH2")
content << xml("XPATH1", "XPATH2")
content << text("REGEX1", "REGEX2")
end
end
j.triggers << reverse(jobs: %w{PROJECT1 PROJECT2}, result: 'unstable')
j.wrappers << timeout(type: 'elastic', elastic_percentage: 150, elastic_default_timeout: 5, fail: true)
j.wrappers << timestamps
j.builders << copyartifact(project: "PROJECT", filter: "FILTER", target: "TARGET", flatten: true)
j.builders << shell("COMMAND")
j.publishers << archive(artifacts: "ARTIFACTS", latest_only: true, allow_empty: true)
j.publishers << cppcheck(pattern: "PATTERN")
j.publishers << email_ext(recipients: %w{fred barney})
j.publishers << fitnesse(results: "FITNESSE_RESULTS")
j.publishers << gitlab_notifier(name: "GITLAB", mark_unstable_as_success: true)
j.publishers << ircbot(notify_start: true)
j.publishers << junit(results: "RESULTS", keep_long_stdio: false)
j.publishers << trigger(project: "PROJECT")
j.publishers << trigger_parameterized_builds do |builds|
builds << build(project: %w[PROJECT1 PROJECT2],
predefined_parameters: { param1: "VALUE1", param2: "VALUE2" },
current_parameters: true,
node_parameters: false,
svn_revision: true,
include_upstream: false,
git_revision: { combine_queued_commits: true },
boolean_parameters: { bool1: true, bool2: false },
condition: "FAILED_OR_BETTER",
property_file: "FILE.properties",
fail_on_missing: true,
use_matrix_child_files: false,
only_exact_matrix_child_runs: true,
file_encoding: "UTF-8",
trigger_with_no_params: false,
restrict_matrix_project: 'label=="x86"',
node_label_name: "LABEL_NAME",
node_label: "LABEL")
builds << build(project: "SINGLE_PROJECT",
predefined_parameters: { param: "VALUE" },
git_revision: true)
end
j.publishers << xunit do |types|
types << gtest(pattern: "GTEST_PATTERN", deleteoutput: false)
types << unittest(pattern: "UNITTEST_PATTERN", deleteoutput: false)
end
end