forked from chr0n1x/singularity
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.sample.js
More file actions
62 lines (62 loc) · 1.57 KB
/
config.sample.js
File metadata and controls
62 lines (62 loc) · 1.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
exports.config = {
// used to create webhooks. port is appended to this
// so no trailing slash!
host: 'http://your.hosts.domain',
// port that express will run on
port: '8080',
// info or debug
log_level: 'debug',
// whether to save this configuration into the database
// and opt to use stored configs over this file
persist_config: true,
db: {
type: 'mongo',
auth: {
user: 'username',
pass: 'password',
host: 'your_host',
port: 27017,
db: 'mergeatron',
slaveOk: false
},
collections: [ 'pulls', 'pushes', 'merges' ]
},
plugins: {
github: {
method: 'hooks',
// passed directly into the github module so username & password works too
auth: {
type: 'oauth',
token: 'CI-USER-TOKEN',
username: 'CI-USER'
},
user: 'ORGANIZATION',
repos: [ 'ARRAY OF REPO NAMES FOR ORG' ],
skip_file_listing: true
},
jenkins: {
user: 'YOUR_JENKINS_USER',
pass: 'PASSWORD',
protocol: 'http',
host: 'YOUR_JENKINS_HOST',
token: 'project_trigger_token_for_all_projects',
push_projects: [
{
repo: 'your_repo',
rules: [ new RegExp(/^master$/) ],
name: 'jenkins_project_to_trigger_on_push',
token: 'project_trigger_token_just_for_this_project'
}
],
projects: [
{
name: 'project_name',
repo: 'mapped_repo',
rules: [],
token: 'project_trigger_token_just_for_this_project'
}
],
frequency: 2000
}
}
};