Commit ee62fc8e authored by coldice's avatar coldice
Browse files

ci fix: use commit sha as version tag on xp build.

parent 62ddd214
Pipeline #130 passed with stages
in 45 seconds
......@@ -36,14 +36,13 @@ publish-xp:
dependencies:
- "build-xp"
script:
- $(If (-Not [regex]::IsMatch("$CI_COMMIT_TAG", "^v[0-9]+\.[0-9]+\.[0-9]+$")) {exit})
- $env:VAULT_TOKEN = (vault.exe write -field=token auth/jwt/login role=browserpluginextender-nexus-read jwt="${CI_JOB_JWT}")
- $NEXUS_USERNAME = (vault.exe kv get -field=username flashpoint/nexus)
- $NEXUS_PASSWORD = (vault.exe kv get -field=password flashpoint/nexus)
- $NEXUS_SERVER = (vault.exe kv get -field=server flashpoint/nexus)
- $NEXUS_REPOSITORY = "flashpoint-dependency-software"
- $UPLOAD_PATH = "BrowserPluginExtender"
- $filename = "browserpluginextender-win_xp-x86-release-$CI_COMMIT_TAG"
- $filename = "browserpluginextender-win_xp-x86-release-$CI_COMMIT_SHORT_SHA"
- Move-Item -Path "Release" -Destination "$filename"
- '& "tar.exe" -cvzf "$filename.tar.gz" "$filename"'
- '& "curl.exe" -s -u "${NEXUS_USERNAME}:${NEXUS_PASSWORD}" --upload-file "$filename.tar.gz" "https://${NEXUS_SERVER}/repository/${NEXUS_REPOSITORY}/${UPLOAD_PATH}/$filename.tar.gz"'
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment