Skip to content

Commit

Permalink
Output the powershell version info in gitlab-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jonoomph committed Dec 1, 2022
1 parent eb7bb51 commit f94cb69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ windows-builder-x64:
- build\install-x64\share\*.log
- build\build-server.log
script:
- $PSVersionTable
- $PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'
- try { Invoke-WebRequest -Uri "http://gitlab.openshot.org/OpenShot/libopenshot/-/jobs/artifacts/$CI_COMMIT_REF_NAME/download?job=windows-builder-x64" -Headers @{"PRIVATE-TOKEN"="$ACCESS_TOKEN"} -OutFile "artifacts.zip" } catch { $_.Exception.Response.StatusCode.Value__ }
- if (-not (Test-Path "artifacts.zip")) { Invoke-WebRequest -Uri "http://gitlab.openshot.org/OpenShot/libopenshot/-/jobs/artifacts/develop/download?job=windows-builder-x64" -Headers @{"PRIVATE-TOKEN"="$ACCESS_TOKEN"} -OutFile "artifacts.zip" }
Expand Down Expand Up @@ -124,6 +125,7 @@ windows-builder-x86:
- build\install-x86\share\*.log
- build\build-server.log
script:
- $PSVersionTable
- $PSDefaultParameterValues['Out-File:Encoding'] = 'utf8'
- try { Invoke-WebRequest -Uri "http://gitlab.openshot.org/OpenShot/libopenshot/-/jobs/artifacts/$CI_COMMIT_REF_NAME/download?job=windows-builder-x86" -Headers @{"PRIVATE-TOKEN"="$ACCESS_TOKEN"} -OutFile "artifacts.zip" } catch { $_.Exception.Response.StatusCode.Value__ }
- if (-not (Test-Path "artifacts.zip")) { Invoke-WebRequest -Uri "http://gitlab.openshot.org/OpenShot/libopenshot/-/jobs/artifacts/develop/download?job=windows-builder-x86" -Headers @{"PRIVATE-TOKEN"="$ACCESS_TOKEN"} -OutFile "artifacts.zip" }
Expand Down

0 comments on commit f94cb69

Please sign in to comment.