Skip to content

Instantly share code, notes, and snippets.

@hgautam
Last active July 10, 2020 00:07
Show Gist options
  • Save hgautam/4dc372ba97dd48983626c68c01dc2240 to your computer and use it in GitHub Desktop.
Save hgautam/4dc372ba97dd48983626c68c01dc2240 to your computer and use it in GitHub Desktop.
A sample pipeline YAML
buildPack: nop
pipelineConfig:
agent:
label: gcr.io/jenkinsxio/builder-go
env:
- name: JENKINS_X
value: jx
- name: MY_VAR
value: foo
pipelines:
release:
setup:
steps:
- name: download-dependencies
sh: echo downloading dependencies for ${JENKINS_X}
- name: set-permissions
sh: echo running chmod command
overrides:
- name: dummy-release
pipeline: release
stage: build
step:
name: pre-dummy-release
sh: echo pre dummy release
type: before
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment