Skip to content

Commit

Permalink
Merge pull request jenkins-x-buildpacks#63 from tdcox/ml-9
Browse files Browse the repository at this point in the history
fix: Catch situation where pipeline is run again against existing PR
  • Loading branch information
jstrachan authored Jul 11, 2019
2 parents 439e777 + 1428ce9 commit b4c0343
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packs/ml-python-gpu-training/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pipelines:
cp ../*.onnx . &&
cp -r ../metrics . &&
git add *.onnx metrics &&
jx create pullrequest --push -b --title 'New model trained' --body 'feat: New model trained' &&
{ jx create pullrequest --push -b --title 'New model trained' --body 'feat: New model trained' || echo 'Using previous PR'; } &&
sha1sum *.onnx >&2
name: export-model
2 changes: 1 addition & 1 deletion packs/ml-python-training/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pipelines:
git lfs track '*.onnx' &&
cp ../*.onnx . &&
git add *.onnx &&
jx create pullrequest --push -b --title 'New model trained' --body 'feat: New model trained' &&
{ jx create pullrequest --push -b --title 'New model trained' --body 'feat: New model trained' || echo 'Using previous PR'; } &&
sha1sum *.onnx >&2
name: export-model
post:
Expand Down

0 comments on commit b4c0343

Please sign in to comment.