diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2017-09-05 14:22:56 +0200 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2017-09-06 12:28:12 +0000 |
commit | 4aa6db7b8e972719de192b6bf795ae94f70e0543 (patch) | |
tree | 7d3bcfa5515d86b74dec04cefe3e7e55781f6cf2 /sid-arm64-rootfs.yaml | |
parent | dc18b4eff74a83d598d6535b8899a38956ad63da (diff) |
sid-arm*-rootfs: add new job
Change-Id: I4df8b35f982d9a3efc0f62c743e9430b84c18c2c
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'sid-arm64-rootfs.yaml')
-rw-r--r-- | sid-arm64-rootfs.yaml | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/sid-arm64-rootfs.yaml b/sid-arm64-rootfs.yaml new file mode 100644 index 0000000000..f0ca195d4e --- /dev/null +++ b/sid-arm64-rootfs.yaml @@ -0,0 +1,116 @@ +- job: + name: sid-arm64-rootfs + project-type: matrix + defaults: global + properties: + - authorization: + anonymous: + - job-read + - job-extended-read + linaro: + - job-build + - job-cancel + - build-discarder: + days-to-keep: 30 + num-to-keep: 30 + artifact-num-to-keep: 1 + parameters: + - string: + name: codename + default: 'sid' + disabled: false + node: build + child-workspace: . + display-name: 'Linaro Debian arm64 rootfs (Sid)' + scm: + - git: + url: https://git.linaro.org/ci/ubuntu-build-service.git + refspec: +refs/heads/master:refs/remotes/origin/master + name: origin + branches: + - refs/heads/master + skip-tag: true + shallow-clone: true + clean: + after: true + wipe-workspace: false + axes: + - axis: + type: slave + name: label + values: + - docker-jessie-arm64 + - axis: + type: user-defined + name: rootfs + values: + - alip + - developer + - installer + wrappers: + - timestamps + - matrix-tie-parent: + node: build + - timeout: + timeout: 120 + builders: + - linaro-publish-token + - shell: | + #!/bin/bash + + set -ex + + trap cleanup_exit INT TERM EXIT + + cleanup_exit() + { + cd ${WORKSPACE} + sudo umount builddir + } + + sudo apt-get update + sudo apt-get install -y --no-install-recommends cpio debootstrap live-build python-requests uuid-runtime + sudo dpkg -i --force-all packages/live-build_3.0.5-1linaro1_all.deb + + dpkg -s qemu-user-static |grep '^Version' + dpkg -s live-build |grep '^Version' + + test -d builddir || mkdir builddir + sudo mount -t tmpfs -o size=8G tmpfs builddir + cp -a ${codename}-arm64-${rootfs} builddir/ + cd builddir/${codename}-arm64-${rootfs} + ./configure + make + + cd ${WORKSPACE} + sudo rm -rf out && mkdir out + sudo mv builddir/${codename}-arm64-${rootfs}/linaro-${codename}-* out + + # Build information + cat > out/HEADER.textile << EOF + + h4. Build description ( $JOB_NAME ) + + * Job URL: "$JOB_URL":$JOB_URL + * Build URL: "$BUILD_URL":$BUILD_URL + * Commit: "$GIT_COMMIT":$GIT_URL/commit/?id=$GIT_COMMIT + EOF + + # 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 --api_version 3 --link-latest out debian/images/${codename}/${rootfs}-arm64/${BUILD_NUMBER} + publishers: + - groovy-postbuild: + script: | + def build_number = manager.build.number + def codename = manager.build.buildVariables.get('codename') + def rootfs = manager.build.buildVariables.get('rootfs') + def url = "http://snapshots.linaro.org/debian/images/${codename}/${rootfs}-arm64/${build_number}/" + def desc = " <a href='${url}'>Build location<t/a>" + + if (manager.build.result == hudson.model.Result.SUCCESS) { + manager.build.setDescription(desc) + } + - email: + recipients: 'fathi.boudra@linaro.org riku.voipio@linaro.org' |