Created
February 20, 2019 16:15
-
-
Save pmuir/ea2b56e8b5ad918a3552baad19e98ae6 to your computer and use it in GitHub Desktop.
Prow config proposal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a CRD that defines a shared config. Would be stored in environment repo in gitops mode. | |
allRepos: &allRepos | |
branch-protection: | |
protect: true | |
owners_dir_blacklist: | |
default: null | |
repos: null | |
prowjob_namespace: jx | |
pod_namespace: jx | |
push_gateway: {} | |
sinker: | |
resync_period: 5m | |
max_prowjob_age: 4h | |
max_pod_age: 4h | |
templates: | |
- jenkins-go | |
- jenkins-go-script-bdd | |
- knative-chart | |
- jenkins-base | |
postsubmit: | |
- agent: knative-build | |
branches: | |
- master | |
build_spec: | |
serviceAccountName: knative-build-bot | |
name: release | |
presubmit: | |
- agent: knative-build | |
always_run: true | |
build_spec: | |
serviceAccountName: knative-build-bot | |
context: serverless-jenkins | |
name: serverless-jenkins | |
rerun_command: /test this | |
trigger: (?m)^/test( all| this),?(\s+|$) | |
tide: | |
sync_period: 1m | |
status_update_period: 1m | |
context_options: | |
from-branch-protection: true | |
skip-unknown-contexts: false | |
queryTemplates: | |
- labels: &updatebot | |
- updatebot | |
missingLabels: | |
- do-not-merge | |
- do-not-merge/hold | |
- do-not-merge/work-in-progress | |
- needs-ok-to-test | |
- needs-rebase | |
triggers: | |
only_org_members: true | |
heart: | |
adorees: | |
- jenkins-x-bot | |
owners: {} | |
externalPluginTemplates: &slackApp | |
- endpoint: http://cb-app-slack | |
name: cb-app-slack | |
plugins: &defaultPlugins | |
- approve | |
- assign | |
- blunderbuss | |
- help | |
- hold | |
- lgtm | |
- lifecycle | |
- size | |
- trigger | |
- wip | |
requiresig: {} | |
sigmention: {} | |
slack: {} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file goes in the git repository being built. This example adds a plugin | |
!include busyRepos | |
pipelineConfig: | |
prow: | |
<<: &busyRepos | |
<<: &slackApp | |
plugins: | |
<<: *defaultPlugins | |
- cat # This plugin has been added | |
pipelines: | |
release: | |
pipeline: | |
agent: | |
image: some-image | |
stages: | |
- name: A Working Stage | |
steps: | |
- command: echo | |
args: | |
- hello | |
- world | |
- name: Another stage | |
steps: | |
- command: echo | |
args: ['again'] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a CRD that defines a shared config. Would be stored in environment repo in gitops mode. | |
!include allRepos | |
busyRepos: | |
<<: *allRepos | |
tide: | |
queries: | |
<<: *updatebot | |
- labels: &lgtm | |
- approved | |
- lgtm | |
missingLabels: | |
- do-not-merge | |
- do-not-merge/hold | |
- do-not-merge/work-in-progress | |
- needs-ok-to-test | |
- needs-rebase | |
approve: | |
lgtm_acts_as_approve: true | |
lgtm: | |
review_acts_as_lgtm: true | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file goes in the git repository being built | |
!include busyRepos | |
pipelineConfig: | |
prow: | |
<<: &busyRepos | |
<<: &slackApp | |
pipelines: | |
release: | |
pipeline: | |
agent: | |
image: some-image | |
stages: | |
- name: A Working Stage | |
steps: | |
- command: echo | |
args: | |
- hello | |
- world | |
- name: Another stage | |
steps: | |
- command: echo | |
args: ['again'] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a CRD that defines a shared config. Would be stored in environment repo in gitops mode. | |
quietRepos: | |
<<: *allRepos | |
tide: | |
queries: | |
<<: *updatebot | |
- labels: &approved | |
- approved | |
missingLabels: | |
- do-not-merge | |
- do-not-merge/hold | |
- do-not-merge/work-in-progress | |
- needs-ok-to-test | |
- needs-rebase | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment