Skip to content

How to upload an file to awpbuild for caching

In what cases should it be used?

For example, when the execution time is slow in Jenkins and you want to use locally cached data.

General flow

  1. Download the "put" script from "release_tarballs". (only first)
  2. Download a file of want to store.
  3. Execute the "put" script

1. Download the "put" script from "release_tarballs" (only first)

Use rsync to download the "put" script from "release_tarballs".

# Only download the "put" script.
rsync -avz rsync://awpbuild.atlnz.lc:/release_tarballs/put ~/release_tarballs/

2. Download a file of want to store

Use wget or curl to save the necessary files to the following location.

# Download the file
wget https://example.com/needs_file.tar.gz
curl -O https://example.com/needs_file.tar.gz

# Move a need file to release_tarballs folder
mv needs_file.tar.gz ~/release_tarballs/ 

3. Execute the "put" script

Use the "put" script to save the file to "release_tarballs".

[!WARN] When uploading files, PLEASE BE CAREFUL NOT TO UPLOAD THE WRONG FILE.
If you want to delete a file, you will need to contact a ATNZ Team and have them delete the file manually.

cd ~/release_tarballs/
./put needs_file.tar.gz