Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Flashpoint
Software
Browser Plugin Extender
Commits
ee62fc8e
Commit
ee62fc8e
authored
Sep 29, 2021
by
coldice
Browse files
ci fix: use commit sha as version tag on xp build.
parent
62ddd214
Pipeline
#130
passed with stages
in 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
ee62fc8e
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment