tree: 2ab939bf0b84a7d92b4ec09e477bca6f3d89ff79
  1. dep/
  2. README.md
  3. upload_to_cipd.py
scripts/cipd/README.md

CIPD upload script

The script upload_to_cipd.py is used to upload cel releases to CIPD.

CIPD structure

The structure of celab stuff on cipd is:

infra/celab                      The root of everything celab related
     ├── celab
     │     ├── windows-amd64     celab release for Windows
     │     └── linux-amd64       celab release for Linux

There also are other directories to contain 3rd party dependencies, e.g. infra/celab/dep/choco where chocolatey packages are stored, infra/celab/dep/ps where PowerShell DSC packages are stored, etc. Those packages upload would be still handled by cipd commands.

Script usage

The script relies on cipd so make sure that depot_tools is already installed.

  • To upload a build to CIPD and mark it as the latest(Please replace the zip file with the latest CI build, the file name can be found at execution details of LUCI step “gsutil upload CELab Test Logs”), please run:

    vpython3 upload_to_cipd.py \
      --input_file=gs://celab/Windows/2020/11/09/8864066279146957520/cel.zip \
      --platform=windows-amd64 \
      --ref=latest
    

If you just want to upload the package for testing with the Poros Web UI client, please use the ref dev instead of latest since Poros uses Linux dev package for every deployment.