Skip to content

Changing place where windows CI artefacts are stored#4254

Open
przepeck wants to merge 21 commits into
mainfrom
przepeck/ci_paths_change
Open

Changing place where windows CI artefacts are stored#4254
przepeck wants to merge 21 commits into
mainfrom
przepeck/ci_paths_change

Conversation

@przepeck
Copy link
Copy Markdown
Collaborator

🛠 Summary

CVS-183935
Changing artifacts path to preserve history, when there are multiple packages with the same tags

🧪 Checklist

  • Unit tests added.
  • The documentation updated.
  • Change follows security best practices.
    ``

@przepeck przepeck marked this pull request as ready for review May 28, 2026 11:07
Copilot AI review requested due to automatic review settings May 28, 2026 11:07
@przepeck przepeck requested review from dtrawins and rasapala May 28, 2026 11:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>.zip and publish into versioned + latest subdirectories using net use to map the share.
  • Gate unit_test/check_tests behind env.RUN_TESTS == "1".
  • Add WORKER_CREDS credentials binding and a buildstamp timestamp.

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 thread ci/build_test_release.groovy Outdated
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}\"")
@przepeck przepeck changed the title Przepeck/ci paths change Changing place where windows CI artefacts are stored May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants