17 lines
734 B
YAML
17 lines
734 B
YAML
# Read by devops-lib's loadConfig stage after checkout — merges into the
|
|
# pipeline's config map, overriding whatever homelabPipeline(repo_name: ...)
|
|
# passed in the Jenkinsfile. Everything here is optional; this file exists
|
|
# mainly to prove the hooks mechanism actually runs, not because this app
|
|
# needs to override any of the pipeline defaults.
|
|
hooks:
|
|
pre_build:
|
|
- name: gofmt-check
|
|
script: scripts/pre-build-check.sh
|
|
# Advisory on purpose for this demo — a real repo would probably
|
|
# want this blocking (the default), but failing the one demo app
|
|
# over a formatting nit isn't the point here.
|
|
blocking: false
|
|
post_build:
|
|
- name: report-tag
|
|
script: scripts/post-build-notify.sh
|