-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.toml
More file actions
76 lines (62 loc) · 2.57 KB
/
config.example.toml
File metadata and controls
76 lines (62 loc) · 2.57 KB
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
http_server_listen_addr = ":8085"
#https_server_listen_addr = ":8084"
#https_ssl_cert_file = ""
#https_ssl_key_file = ""
# endpoint that receives GitHub webhook events
github_webhook_endpoint = "/listener/github"
# must matcht the webhook configuration in GitHub
github_webhook_secret = ""
# prometheus_metrics_endpoint = "/metrics"
# required for adding/removing PR labels and submit commit statuses
github_api_token = "my-secret-token"
# supported log formats: logfmt, console, json
log_format = "logfmt"
# key used by the logger for the timestamp, an empty value omits the timestamp
# from logs
log_time_key = "time_iso8601"
# All log messages with the specified or a higher priority are logged.
# Supported values: debug, info, warn, error, panic, fatal
log_level = "info"
# local http server endpoint that serves the web interface
webinterface_endpoint = "/"
# enqueue/dequeue a pull request when a PR has this label
trigger_labels = ["queue-add"]
# enqueue/dequeue a pull request for autoupdates when auto-merge is enabled
# (https://docs.github.com/en/github/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request)
trigger_on_auto_merge = true
# this label is added to the PR when it becomes first in the queue
queue_pr_head_label = "#1 in merge queue"
[[repository]]
owner = "simplesurance"
repository = "goordinator"
# This sections allows to configure Jenkins Jobs that are triggered when a pull
# request becomes the first in the queue.
[ci]
server_url = "https://jenkins"
basic_auth.user = "cetautomatix"
basic_auth.password = "hammer"
[[ci.job]]
# URL to the Jenkins job relative to server_url.
# The following Go template variables are supported:
# - {{ .Branch }}
# - {{ .PullRequestNumber }}
# The following Go template functions are supported:
# - {{ queryescape }}
# Escapes a string so it can be safely used as query component in a URL
# - {{ pathescape }}
# Escapes a string so it can be safely used as path segment in a URL
url_path = "job/check/{{ queryescape .Branch }}"
# Is the name of the GitHub commit status or check that the Job uses to
# report the execution status.
# Setting it allows to only trigger Jenkins Job that aren't already running
# for a commit.
github_context = "check"
[[ci.job]]
url_path = "job/build/{{ queryescape .PullRequestNumber }}"
github_context = "build"
[[ci.job]]
url_path = "job/test/"
github_context = "test"
[ci.job.parameters]
branch = "{{ .Branch }}"
pr_nr = "{{ .PullRequestNr }}"