diff options
author | Ricardo Salveti <ricardo.salveti@linaro.org> | 2015-12-17 10:32:37 -0200 |
---|---|---|
committer | Linaro Code Review <review@review.linaro.org> | 2015-12-17 12:34:09 +0000 |
commit | b027124a81382f363875621ce768ea6b105b990e (patch) | |
tree | 7e31f04a34d8e68878846ec9551b636d81128727 | |
parent | 4ee1dbb130be2ba8742855d41d61661a79edc201 (diff) |
96boards-reference-kernel-enterprise: first working version
Change-Id: I654aab1016928e34bd60716b6ffb621597e2a2c9
Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>
-rw-r--r-- | 96boards-reference-kernel-enterprise.yaml | 53 |
1 files changed, 38 insertions, 15 deletions
diff --git a/96boards-reference-kernel-enterprise.yaml b/96boards-reference-kernel-enterprise.yaml index 01ff157..d848b84 100644 --- a/96boards-reference-kernel-enterprise.yaml +++ b/96boards-reference-kernel-enterprise.yaml @@ -19,8 +19,14 @@ - job-cancel parameters: - string: - name: KERNEL_BRANCH + name: KERNEL_GIT_BRANCH default: '96b/2015.12' + - string: + name: KERNEL_GIT_URL + default: 'https://git.linaro.org/people/amit.kucheria/kernel.git' + - string: + name: TARGET_REPO + default: 'linaro-staging' disabled: false node: docker-jessie-amd64 display-name: '96boards - Reference Component Enterprise - Linux Kernel' @@ -40,14 +46,17 @@ sudo apt-get install -y ccache python-pycurl quilt cpio rsync # Checkout source code - git clone -b ${KERNEL_BRANCH} --depth 1 https://git.linaro.org/people/amit.kucheria/kernel.git linux-dev + git clone -b ${KERNEL_GIT_BRANCH} ${KERNEL_GIT_URL} linux git clone --depth 1 https://git.linaro.org/ci/debian-kernel-packaging.git debian-pkg # Export the kernel packaging version - cd linux-dev + cd linux + kernel_version=`make kernelversion` + export KERNEL_GIT_VERSION=`git log --format="%H" -1` export KDEB_PKGVERSION="${kernel_version}-${BUILD_NUMBER}" git tag v${kernel_version} + cd .. # Build the source kernel @@ -55,18 +64,20 @@ cat << EOF > debian/changelog linux ($KDEB_PKGVERSION) jessie; urgency=medium - * Auto build + * Auto build: + - URL: ${KERNEL_GIT_URL} + - Branch: ${KERNEL_GIT_BRANCH} + - Hash: ${KERNEL_GIT_VERSION} - -- Ricardo Salveti <ricardo.salveti@linaro.org> `date "+%a, %d %b %Y %T %z"` + -- Ricardo Salveti de Araujo <ricardo.salveti@linaro.org> `date "+%a, %d %b %Y %T %z"` EOF # Use the kernel config from the kernel tree - #cp ../linux-dev/arch/arm64/configs/distro.config debian/config/arm64/config - wget http://people.linaro.org/~ricardo.salveti/96b-distro.config -O debian/config/arm64/config + cp ../linux/arch/arm64/configs/distro.config debian/config/arm64/config debian/rules clean || true - debian/bin/genorig.py ../linux-dev + debian/bin/genorig.py ../linux debian/rules orig fakeroot debian/rules source debuild -S -uc -us @@ -74,7 +85,8 @@ cat > ${WORKSPACE}/build-package-params <<EOF source=${BUILD_URL}/artifact/$(echo *.dsc) - repo=rsalveti + repo=${TARGET_REPO} + codename=jessie EOF # Final preparation for publishing @@ -86,6 +98,22 @@ # Create MD5SUMS file (cd out && md5sum * > MD5SUMS.txt) + # Build information + cat > out/README.textile << EOF + + h4. 96Boards - Reference Component Enterprise - Kernel + + Linux Kernel build consumed by the 96Boards Reference Platform Enterprise Builds + + Build Description: + * Build URL: "$BUILD_URL":$BUILD_URL + * Git tree: "$KERNEL_GIT_URL":$KERNEL_GIT_URL + * Git branch: $KERNEL_GIT_BRANCH + * Git hash: $KERNEL_GIT_VERSION + * 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 @@ -93,16 +121,11 @@ --server ${PUBLISH_SERVER} \ --link-latest \ out snapshots/reference-platform/components/linux/enterprise/${BUILD_NUMBER}/ - - cat > ${WORKSPACE}/build-package-params <<EOF - source=${BUILD_URL}/artifact/$(echo *.dsc) - repo=rsalveti - EOF publishers: - archive: artifacts: '*.dsc, *.xz' - trigger-parameterized-builds: - - project: build-all-packages + - project: build-package property-file: build-package-params condition: SUCCESS - email: |