diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2015-12-01 11:28:53 +0200 |
---|---|---|
committer | Linaro Code Review <review@review.linaro.org> | 2015-12-01 09:31:03 +0000 |
commit | cc73bfd6ddfcada1ef4b4c002901056bd47595f8 (patch) | |
tree | 288fe2bd61fe1646933c713edc1cd3ad6734941e /openembedded-armv8-pre-built-images-lt-vexpress64.yaml | |
parent | 8a9dfd9a40330f659a82cae918388b9f1b7fc185 (diff) |
openembedded-*-pre-built-images: get rid of SSH publisher
SSH publisher is deprecated in favor of Linaro publishing API
Change-Id: I9cb886f4e3e902cc1505f24fb578117cc7f39107
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'openembedded-armv8-pre-built-images-lt-vexpress64.yaml')
-rw-r--r-- | openembedded-armv8-pre-built-images-lt-vexpress64.yaml | 54 |
1 files changed, 31 insertions, 23 deletions
diff --git a/openembedded-armv8-pre-built-images-lt-vexpress64.yaml b/openembedded-armv8-pre-built-images-lt-vexpress64.yaml index 27925bc..b8e68d6 100644 --- a/openembedded-armv8-pre-built-images-lt-vexpress64.yaml +++ b/openembedded-armv8-pre-built-images-lt-vexpress64.yaml @@ -5,6 +5,7 @@ logrotate: daysToKeep: 30 numToKeep: 30 + artifactNumToKeep: 1 properties: - authorization: anonymous: @@ -19,6 +20,9 @@ name: LAVA_TOKEN default: ${LAVA_TOKEN} - string: + name: hwpack + default: 'lt-vexpress64' + - string: name: gcc_version default: '5.2' disabled: false @@ -28,6 +32,7 @@ wrappers: - timestamps builders: + - linaro-publish-token - shell: | #!/bin/bash @@ -40,22 +45,30 @@ git clone git://git.linaro.org/ci/daily-prebuilt-images.git export BOOTLOADER="uefi" - DELETEDIR=1 ./daily-prebuilt-images/build-images -w lt-vexpress64 -b minimal-armv8-gcc-${gcc_version} -p openembedded -f - REUSE=1 ./daily-prebuilt-images/build-images -w lt-vexpress64 -b lamp-armv8-gcc-${gcc_version} -p openembedded -f - - ssh: - site: 'snapshots.linaro.org' - target: '${JOB_NAME}/${BUILD_NUMBER}/openembedded' - source: 'out/pre-built/**' - timeout: 120000 - remove-prefix: 'out' - always-publish-from-master: true - - ssh: - site: 'snapshots.linaro.org file-move' - target: '' - source: '' - command: 'reshuffle-files -t prebuilt -j ${JOB_NAME} -n ${BUILD_NUMBER}' - timeout: 120000 - always-publish-from-master: true + DELETEDIR=1 ./daily-prebuilt-images/build-images -w ${hwpack} -b minimal-armv8-gcc-${gcc_version} -p openembedded -f + REUSE=1 ./daily-prebuilt-images/build-images -w ${hwpack} -b lamp-armv8-gcc-${gcc_version} -p openembedded -f + + export HWPACK_JOB_NAME=${JOB_NAME} + export BUNDLE_STREAM_NAME="/private/team/wg/wg-private/" + + export HWPACK_FILE_NAME=`find out/pre-built -type f -name "*_minimal-armv8-gcc-${gcc_version}_*.img.gz" |xargs basename` + export HWPACK_BUILD_NUMBER=`echo ${HWPACK_FILE_NAME} |cut -d'_' -f3 |cut -d'-' -f2` + export HWPACK_BUILD_NUMBER=${HWPACK_BUILD_NUMBER%%.img.gz} + + # 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 \ + --link-latest \ + out/pre-built/${hwpack}/${HWPACK_BUILD_NUMBER} openembedded/pre-built/${hwpack}/${HWPACK_BUILD_NUMBER} + + cat << EOF > env_var_parameters + BUNDLE_STREAM_NAME=${BUNDLE_STREAM_NAME} + HWPACK_JOB_NAME=${HWPACK_JOB_NAME} + HWPACK_BUILD_NUMBER=${HWPACK_BUILD_NUMBER} + EOF + - inject: + properties-file: env_var_parameters - shell: | #!/bin/bash @@ -69,7 +82,7 @@ cat << EOF > ${WORKSPACE}/metadata.json { - "hwpack.type": "lt-vexpress64" + "hwpack.type": "${hwpack}" } EOF - shell: | @@ -78,13 +91,9 @@ set -x export DEVICE_TYPE=juno - export HWPACK_JOB_NAME=${JOB_NAME} - export BUNDLE_STREAM_NAME="/private/team/wg/wg-private/" export ROOTFS_TYPE=lamp-armv8-gcc-${gcc_version} export HWPACK_FILE_NAME=`find out/pre-built -type f -name "*_lamp-armv8-gcc-${gcc_version}_*.img.gz" |xargs basename` - export HWPACK_BUILD_NUMBER=`echo ${HWPACK_FILE_NAME} |cut -d'_' -f3 |cut -d'-' -f2` - export HWPACK_BUILD_NUMBER=${HWPACK_BUILD_NUMBER%%.img.gz} cat << EOF > ${WORKSPACE}/post_build_lava_parameters DEVICE_TYPE=${DEVICE_TYPE} @@ -93,7 +102,7 @@ HWPACK_FILE_NAME=${HWPACK_FILE_NAME} HWPACK_BUILD_NUMBER=${HWPACK_BUILD_NUMBER} LAVA_TEST_PLAN='busybox device-tree ethernet kernel-version ltp pwrmgmt toolchain libhugetlbfs pointer-tagging-tests' - IMAGE_URL=http://snapshots.linaro.org/openembedded/pre-built/lt-vexpress64/${HWPACK_BUILD_NUMBER}/${HWPACK_FILE_NAME} + IMAGE_URL=http://snapshots.linaro.org/openembedded/pre-built/${hwpack}/${HWPACK_BUILD_NUMBER}/${HWPACK_FILE_NAME} METADATA_URL=${JOB_URL}/ws/metadata.json EOF - trigger-builds: @@ -103,6 +112,5 @@ publishers: - archive: artifacts: '*.json' - latest-only: true - email: recipients: 'fathi.boudra@linaro.org koen.kooi@linaro.org riku.voipio@linaro.org' |