-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathpipeline.yaml
34 lines (34 loc) · 938 Bytes
/
pipeline.yaml
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
agent:
label: jenkins-go
container: go
dir: /home/jenkins/go/src/REPLACE_ME_GIT_PROVIDER/REPLACE_ME_ORG/REPLACE_ME_APP_NAME
pipelines:
pullRequest:
setup:
steps:
- groovy: checkout scm
build:
steps:
- sh: make linux
release:
setup:
steps:
- groovy: git 'https://REPLACE_ME_GIT_PROVIDER/REPLACE_ME_ORG/REPLACE_ME_APP_NAME.git'
when: "prow"
- groovy: checkout scm
when: "!prow"
- sh: git checkout master
comment: ensure we're not on a detached head
when: "!prow"
- sh: git config --global credential.helper store
when: "!prow"
- sh: jx step git credentials
when: "!prow"
setVersion:
steps:
- sh: echo \$(jx-release-version) > VERSION
comment: so we can retrieve the version in later steps
- sh: jx step tag --version \$(cat VERSION)
build:
steps:
- sh: make build