Skip to content

Commit

Permalink
Added pipeline pre/post check
Browse files Browse the repository at this point in the history
  • Loading branch information
axsaucedo authored and seldondev committed Jul 20, 2020
1 parent 15671b9 commit 380ea44
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions jenkins-x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,24 @@ pipelineConfig:
step:
command: echo "skipping promote"
pullRequest:
preBuild:
steps:
- name: pr-build-comment
agent:
image: gcr.io/jenkinsxio/builder-go:2.0.916-264
dir: ci
sh: "./add-pr-build-comment"
postBuild:
steps:
- name: pr-build-comment
agent:
image: gcr.io/jenkinsxio/builder-go:2.0.916-264
dir: ci
sh: jx step pr comment --owner=$REPO_OWNER --repository=$REPO_NAME --pull-request=$PULL_NUMBER --comment="Testing on finish"
pipeline:
agent:
image: seldonio/core-builder:0.15
stages:
- name: pr-build-comment
steps:
- agent:
image: gcr.io/jenkinsxio/builder-go:2.0.916-264
dir: ci
sh: "./add-pr-build-comment"
- name: build-and-test
parallel:
- name: test-python
Expand Down

0 comments on commit 380ea44

Please sign in to comment.