Skip to content

Commit

Permalink
stash-artifacts.ps1: Fail if unstashing failed
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Nov 25, 2024
1 parent 7eb89f3 commit ab4070a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ jobs:
submodules: "true"
- name: Unstash files
run: |
powershell ops/pipeline/stash-artifacts.ps1 unstash build-wind64-gpu `
powershell ops/pipeline/stash-artifacts.ps1 unstash build-win64-gpu `
build/testxgboost.exe xgboost.exe python-package/dist/*.whl
- run: powershell ops/pipeline/test-win64-gpu.ps1
1 change: 1 addition & 0 deletions ops/pipeline/stash-artifacts.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ python ops/pipeline/stash-artifacts.py `
--s3-bucket "${Env:RUNS_ON_S3_BUCKET_CACHE}" `
--prefix "${artifact_stash_prefix}/${remote_prefix}" `
-- $artifacts
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }

0 comments on commit ab4070a

Please sign in to comment.