diff --git a/.gitlab-ci-build.yml.in b/.gitlab-ci-build.yml.in index b1e1590..354e05a 100644 --- a/.gitlab-ci-build.yml.in +++ b/.gitlab-ci-build.yml.in @@ -79,10 +79,14 @@ hyperv-iso.amd64: tag: hyperv parallel: matrix: [] + script: + - echo $env:COMMAND > build.ps1 + - echo 'if (-not $?) { throw "Error in build"}' >> build.ps1 + - pwsh.exe .\build.ps1 after_script: |- - if [ "$CI_JOB_STATUS" == "success" ]; then + if ( "$CI_JOB_STATUS" -eq "success" ) { xonsh test.xsh - fi + } "Create release": stage: release