aboutsummaryrefslogtreecommitdiff
path: root/odp-publish-gitstats.yaml
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2016-05-16 19:27:20 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2016-05-17 20:55:18 +0000
commit7538a9566813e47fa8c7aba277e95a30d14f895e (patch)
tree7b830e0560575d96c827be596d82c1134d469ce3 /odp-publish-gitstats.yaml
parent16170fd887d182816b1bb62345a4166cd735f716 (diff)
odp-publish*: publish snapshots to stage release builds
Add directory ${job_name}/${build_number} to be able to stage release builds. Do a symbolic from the latest ${build_number} to ${job_name}/latest. We don't save the rm -rf snapshots/* on the publishing side to cleanup how it works today. Change-Id: I2b4ed869820babef4cdee14f839e4b28018fc4bc Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Diffstat (limited to 'odp-publish-gitstats.yaml')
-rw-r--r--odp-publish-gitstats.yaml5
1 files changed, 3 insertions, 2 deletions
diff --git a/odp-publish-gitstats.yaml b/odp-publish-gitstats.yaml
index 10b1aff027..52a19bc617 100644
--- a/odp-publish-gitstats.yaml
+++ b/odp-publish-gitstats.yaml
@@ -81,8 +81,9 @@
command: |
cd /srv/docs.opendataplane.org
rm -rf snapshots/linux-${platform_type}-gitstats
- mkdir snapshots
- cp -a incoming/${JOB_NAME}/${BUILD_NUMBER}/linux-${platform_type}-gitstats snapshots/
+ mkdir snapshots/${JOB_NAME}/${BUILD_NUMBER}
+ cp -a incoming/${JOB_NAME}/${BUILD_NUMBER}/linux-${platform_type}-gitstats snapshots/${JOB_NAME}/${BUILD_NUMBER}/
+ ln -sf snapshots/${JOB_NAME}/${BUILD_NUMBER} snapshots/${JOB_NAME}/latest
rm -rf incoming/${JOB_NAME}/${BUILD_NUMBER}
timeout: 120000
remove-prefix: 'odp/publishing'