-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsample_repo_configuration.yml
158 lines (148 loc) · 4.26 KB
/
sample_repo_configuration.yml
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
project: MYTEAM
repo: my_repo
# Repository Details
default-branch: develop
# Repository Permissions
public: false
users:
read:
- sys.jenkins
groups:
admin:
- team.backend
write:
- team.frontend
- team.qa
# Branch Restrictions
branch-restrictions:
- branch-id: develop
type: fast-forward-only
matcher-type: BRANCH
- branch-id: develop
type: no-deletes
matcher-type: BRANCH
- branch-id: develop
type: pull-request-only
matcher-type: BRANCH
exceptions:
users: []
groups:
- team.frontend
- team.qa
- branch-id: develop
type: fast-forward-only
matcher-type: BRANCH
- branch-id: develop
type: no-deletes
matcher-type: BRANCH
- branch-id: develop
type: pull-request-only
matcher-type: BRANCH
exceptions:
users: []
groups:
- team.backend
access-keys:
- permission: READ_ONLY
text: >
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDTtqHfMHI1Hm5tFOg8fCGQkKJPngmBd6SOjizy792jv4zyNHPVC428zs84uw8NHpXOhALixI77STeWu0Qejlj4agH4fyaC7w6bo346NHSurtH6MdsYFZhSjA9UqVeUnaEfF5do+aY2R9i0QsBAuG/Ha/v5Rpq908+qJi+FItNrJCSj/ov2sWzq1cmsh8Onwujq/EI8Esh55eDE5g6RAou+iwFxH5sU56wvjjdnubb+ieoTpGBNse/qtjQXkTfLeljOPjxNILf7HRFfrqWb3rheYqVS2U/2Tm784aIF/riUZrNzTWW7wCaiFQKEuwKk38fwa5z8v+KKio70oX5FQRvt jenkins@localhost
hooks:
- key: "com.nerdwin15.stash-stash-webhook-jenkins:jenkinsPostReceiveHook"
enabled: true
settings:
branchOptions:
branchOptionsBranches:
cloneType: custom
gitRepoUrl: ssh://[email protected]/MYTEAM/my_repo.git
ignoreCerts: false
ignoreCommitters:
jenkinsBase: https://jenkins.hipster.company.io/
omitBranchName: false
omitHashCode: false
omitTriggerBuildButton: false
- key: "de.aeffle.stash.plugin.stash-http-get-post-receive-hook:http-get-post-receive-hook"
enabled: true
settings:
locationCount: "2" # The plugin requires an explicit count of how many hooks are set
version: "3" # Plugin's API version
branchFilter: ^((proj)|(PROJ))\-.*
httpMethod: POST
tagFilter: ^$
url: https://jenkins.hipster.company.io/job/test/buildWithParameters?token=secret&GIT_BRANCH=${refChange.name} # See all available variables at https://bitbucket.org/a-v-r/bitbucket-http-request-hook/src/master/
skipSsl: true
branchFilter2: ^develop$
httpMethod2: POST
tagFilter2: ^$
url2: https://jenkins.hipster.company.io/job/integrate/build
skipSsl2: false
# Requires BitBucket 6.x
- key: com.atlassian.bitbucket.server.bitbucket-bundled-hooks:needs-work-merge-check
enabled: true
settings: {}
# PR Restrictions
pr-restrictions:
required-all-approvers: true
required-all-tasks-complete: true
required-approvers: 2
required-successful-builds: 1
merge-config:
default-strategy: no-ff
enabled-strategies:
- ff
- ff-only
- no-ff
- squash
- squash-ff-only
# Workzone PR Restrictions
wz-pr-restrictions:
- branch-id: develop
approval-quota: 0 # The percentage of individuals reviewing a PR who must approve it before it can be merged
group-quota: 1 # Minimum number of approvals required per group
# Workzone Branch Reviewers
wz-branch-reviewers:
- branch-id: develop
users:
- the.boss
- senior.dev1
- senior.dev2
groups:
- project.developers
mandatory-users:
- the.boss
mandatory-groups: []
paths: # path specific reviewers
- path: "frontend/**/*.css"
users:
- ux.expert1
- ux.expert2
groups:
- designers
mandatory-users:
- senior.dev1
- senior.dev2
mandatory-groups:
- project.developers
# Workzone Flow
wz-workflow:
push-after-pr: true
unapprove-pr: true
# Webhooks
# For a list of available events, please refer to:
# https://confluence.atlassian.com/bitbucketserver0610/event-payload-989761420.html
webhooks:
- name: a_hook
active: true
url: https://my_endpoint
configuration:
secret: !env MY_SECRET
events:
- pr:modified
- repo:refs_changed
- name: another_hook
active: true
url: http://my_other_endpoint
configuration:
username: my_username
password: !env WEBHOOK_PASSWORD
events:
- pr:modified