3 stage_repo="https://packagecloud.io/api/v1/repos/fdio/staging"
4 curl --netrc-file /home/jenkins/packagecloud_api $stage_repo/packages.json | \
5 python -mjson.tool >filenames.txt
6 grep 'promote_url' filenames.txt > packages.txt
7 sed -i 's|[",:]||g' packages.txt
8 sed -i 's/promote_url//g' packages.txt
10 while read packages; do
12 curl --netrc-file /home/jenkins/packagecloud_api -v -o -X POST -F \
13 destination=fdio/release/ https://packagecloud.io$packages