diff options
Diffstat (limited to 'rpb-kernel.yaml')
-rw-r--r-- | rpb-kernel.yaml | 143 |
1 files changed, 0 insertions, 143 deletions
diff --git a/rpb-kernel.yaml b/rpb-kernel.yaml deleted file mode 100644 index f056b41f2c..0000000000 --- a/rpb-kernel.yaml +++ /dev/null @@ -1,143 +0,0 @@ -- job: - name: 96boards-reference-kernel - project-type: freestyle - defaults: global - logrotate: - daysToKeep: 60 - numToKeep: 60 - properties: - - authorization: - anonymous: - - job-read - - job-extended-read - - job-workspace - linaro: - - job-read - - job-extended-read - - job-build - - job-cancel - parameters: - - string: - name: KERNEL_GIT_BRANCH - default: 'erp-noupstream' - - string: - name: KERNEL_GIT_URL - default: 'https://github.com/Linaro/rpk.git' - - string: - name: TARGET_REPO - default: 'linaro-staging' - disabled: true - node: docker-jessie-rp - display-name: 'DELETE ME' - scm: - - git: - url: ${KERNEL_GIT_URL} - refspec: +refs/heads/${KERNEL_GIT_BRANCH}:refs/remotes/origin/${KERNEL_GIT_BRANCH} - name: origin - branches: - - refs/heads/${KERNEL_GIT_BRANCH} - basedir: linux - skip-tag: true - shallow-clone: false - wipe-workspace: false - wrappers: - - timestamps - - build-name: - name: '#${BUILD_NUMBER}' - builders: - - linaro-publish-token - - shell: | - #!/bin/bash - - set -ex - - sudo apt-get update - sudo apt-get install -y ccache python-requests quilt cpio rsync - - # Checkout source code - git clone --depth 1 -b rpb-stretch https://github.com/Linaro/debian-kernel-packaging.git debian-pkg - - # Export the kernel packaging version - cd ${WORKSPACE}/linux - - kernel_version=$(make kernelversion) - kernel_deb_pkg_version=$(echo ${kernel_version} | sed -e 's/\.0-rc/~rc/') - export KDEB_PKGVERSION="${kernel_deb_pkg_version}.linaro.${BUILD_NUMBER}-1" - git tag v${kernel_deb_pkg_version//\~/-} - - # Build the debian source kernel - cd ${WORKSPACE}/debian-pkg - - # Allow our own versioning scheme - sed -i 's/dfsg/linaro/g' debian/bin/genorig.py debian/lib/python/debian_linux/debian.py - - # Use build number as ABI - sed -i "s/^abiname:.*/abiname: ${BUILD_NUMBER}/g" debian/config/defines - - cat << EOF > debian/changelog - linux ($KDEB_PKGVERSION) unstable; urgency=medium - - * Auto build: - - URL: ${GIT_URL} - - Branch: ${GIT_BRANCH} - - Commit: ${GIT_COMMIT} - - -- 96Boards Team <dev@lists.96boards.org> $(date -R) - - EOF - - debian/rules clean || true - debian/bin/genorig.py ../linux - debian/rules orig - fakeroot debian/rules source - debuild -S -uc -us - cd .. - - cat > ${WORKSPACE}/build-package-params-stretch <<EOF - source=${BUILD_URL}/artifact/$(echo *.dsc) - repo=${TARGET_REPO} - codename=stretch - appendversion=false - EOF - - # Final preparation for publishing - mkdir out - rm *.orig.tar.xz - cp -a orig/*.orig.tar.xz ${WORKSPACE}/ - cp -a *.dsc *.changes *.debian.tar.xz *.orig.tar.xz out/ - - # Create MD5SUMS file - (cd out && md5sum * > MD5SUMS.txt) - - # Build information - cat > out/HEADER.textile << EOF - - h4. Reference Platform - Linux Kernel - - Linux Kernel build consumed by the Reference Platform Builds - - Build Description: - * Build URL: "${BUILD_URL}":${BUILD_URL} - * Git tree: "${GIT_URL}":${GIT_URL} - * Git branch: ${GIT_BRANCH} - * Git commit: ${GIT_COMMIT} - * Kernel version: ${kernel_version} - * Kernel deb version: ${KDEB_PKGVERSION} - 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 \ - --server ${PUBLISH_SERVER} \ - --link-latest \ - out reference-platform/components/linux/common/${BUILD_NUMBER}/ - publishers: - - archive: - artifacts: '*.dsc, *.xz' - - trigger-parameterized-builds: - - project: build-package - property-file: build-package-params-stretch - condition: SUCCESS - - email: - recipients: 'fathi.boudra@linaro.org riku.voipio@linaro.org' |