Changing place where windows CI artefacts are stored#4254
Open
przepeck wants to merge 21 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adjusts the Windows CI publishing step so artifacts are written to a versioned, timestamped directory layout (<PRODUCT_VERSION>/<RELEASE_TAG>/windows/<buildstamp>/...) with a refreshed latest/ copy, instead of overwriting a single per-branch zip. Also makes unit tests conditional on RUN_TESTS and introduces WORKER_CREDS.
Changes:
- Replace branch-based artifact filename with
ovms_windows_<PRODUCT_VERSION>_<RELEASE_TAG>_python_<on|off>.zipand publish into versioned +latestsubdirectories usingnet useto map the share. - Gate
unit_test/check_testsbehindenv.RUN_TESTS == "1". - Add
WORKER_CREDScredentials binding and abuildstamptimestamp.
| windows.unit_test() | ||
| windows.check_tests() | ||
| } | ||
| def safeBranchName = env.BRANCH_NAME.replaceAll('/', '_') |
| bat(returnStatus:true, script: "ECHO F | xcopy /Y /E ${env.WORKSPACE}\\dist\\windows\\ovms.zip \\\\${env.OV_SHARE_05_IP}\\data\\cv_bench_cache\\OVMS_do_not_remove\\ovms-windows-${python_presence}-${safeBranchName}-latest.zip") | ||
| } finally { | ||
| def packageName = "ovms_windows_${env.PRODUCT_VERSION}_${env.RELEASE_TAG}_python_${python_suffix}.zip" | ||
| bat(returnStatus:true, script: "net use w: /delete /y 2>nul & net use w: \\\\10.102.76.118\\data\\cv_bench_cache\\OVMS_do_not_remove\\ovms_artefacts\\") |
Comment on lines
+47
to
+50
| bat(returnStatus:true, script: "copy /Y \"${env.WORKSPACE}\\dist\\windows\\ovms.zip\" \"${destPath}\\${buildstamp}\\${packageName}\"") | ||
| bat(returnStatus:true, script: "if exist \"${latestPath}\" rmdir /S /Q \"${latestPath}\"") | ||
| bat(returnStatus:true, script: "mkdir \"${latestPath}\"") | ||
| bat(returnStatus:true, script: "copy /Y \"${env.WORKSPACE}\\dist\\windows\\ovms.zip\" \"${latestPath}\\${packageName}\"") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🛠 Summary
CVS-183935
Changing artifacts path to preserve history, when there are multiple packages with the same tags
🧪 Checklist
``