forked from SeldonIO/MLServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkins-x.yml
51 lines (51 loc) · 1.47 KB
/
jenkins-x.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
buildPack: none
pipelineConfig:
pipelines:
overrides:
- name: changelog
pipeline: release
stage: promote
step:
command: echo "skipping promote"
pullRequest:
pipeline:
agent:
image: seldonio/core-builder:0.18
stages:
- name: lint-and-test
parallel:
- name: lint
steps:
- command: make
args:
- install-dev
- lint
- name: test
steps:
- command: make
args:
- install-dev
- test
release:
setVersion:
steps:
- name: create-version
command: make version > VERSION
- name: delete-existing-branch
command: git branch -D nightly-\$(make version) || echo "No branch exists"
- name: create-new-branch
command: git checkout -b nightly-\$(make version)
- name: commit-new-branch
command: git push origin nightly-\$(make version) -f
- name: skip-tag
command: echo "skipping tag"
pipeline:
agent:
image: seldonio/core-builder:0.17
stages:
- name: build-and-push
steps:
- name: exit-with-error-to-avoid-auto-changelog
command: exit
args:
- "1"