diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2016-11-07 10:25:18 +0200 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2016-11-08 10:13:26 +0000 |
commit | 5fed374f26854349d2b8321751fc56b0ab983c09 (patch) | |
tree | a2486e37231187e4a9f7a769a4b2fe2b5b8e2452 /rpb-openembedded-krogoth.yaml | |
parent | 6e8ebec2d88e6241d4c2532bba9294ede50f7802 (diff) |
rpb-openembedded: move publishing into a separate shell step
On a fresh/clean build, the build time can exceed the publish token
timeout and will cause a build failure.
Move the linaro-publish-token closer to the actual publishing, and avoid
to take the build time into account.
To be able to publish in a separate step, we also need to inject
DEPLOY_DIR_IMAGE and MACHINE0 environment variables so it is propagated to
the other steps.
Change-Id: I2c83549859138d0f1a18b8ed8391e03e955ce806
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'rpb-openembedded-krogoth.yaml')
-rw-r--r-- | rpb-openembedded-krogoth.yaml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/rpb-openembedded-krogoth.yaml b/rpb-openembedded-krogoth.yaml index 905431fc89..5854483eda 100644 --- a/rpb-openembedded-krogoth.yaml +++ b/rpb-openembedded-krogoth.yaml @@ -64,12 +64,23 @@ - matrix-tie-parent: node: master builders: - - linaro-publish-token: - host: builds.96boards.org - shell: !include-raw: rpb-openembedded/builders.sh - inject: properties-file: post_build_lava_parameters + - linaro-publish-token: + host: builds.96boards.org + - shell: | + #!/bin/bash + + # Publish + test -d ${HOME}/bin || mkdir ${HOME}/bin + wget -q https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py + time python ${HOME}/bin/linaro-cp.py \ + --server ${PUBLISH_SERVER} \ + --link-latest \ + ${DEPLOY_DIR_IMAGE}/ \ + snapshots/reference-platform/openembedded/${MANIFEST_BRANCH}/${MACHINE0}/${DISTRO}/${BUILD_NUMBER} - shell: | case "${MACHINE}" in dragonboard-410c) |