diff options
author | Ricardo Salveti <ricardo.salveti@linaro.org> | 2015-12-21 20:11:35 -0200 |
---|---|---|
committer | Ricardo Salveti <ricardo.salveti@linaro.org> | 2015-12-21 20:11:35 -0200 |
commit | 0583558f85de62caf642b268c32b148a2fd48b75 (patch) | |
tree | dfd093f529e1f1895c0eac09e832719f70e9f146 | |
parent | 65e28cfa076479fce7d89867e9f3a01576a25c0a (diff) |
build-kernel-rpm: initial job
Change-Id: I61767aea1d41aa33a7fc515adf724f3d8f2c7493
Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>
-rw-r--r-- | build-kernel-rpm.yaml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/build-kernel-rpm.yaml b/build-kernel-rpm.yaml new file mode 100644 index 0000000..d650397 --- /dev/null +++ b/build-kernel-rpm.yaml @@ -0,0 +1,47 @@ +- job: + name: build-kernel-rpm + project-type: freestyle + defaults: global + logrotate: + daysToKeep: 30 + numToKeep: 30 + artifactNumToKeep: 1 + properties: + - authorization: + anonymous: + - job-read + - job-extended-read + linaro: + - job-read + - job-extended-read + - job-build + - job-cancel + disabled: false + node: docker-centos7-aarch64 + display-name: 'Build Kernel RPM package (from SRPM)' + parameters: + - string: + name: source + description: 'source url for the SRPM' + wrappers: + - timestamps + builders: + - shell: | + #!/bin/bash + + set -ex + + sudo yum install -y wget git rpm-build yum-utils make + sudo wget http://repo.linaro.org/rpm/linaro-overlay/centos-7/linaro-overlay.repo -O /etc/yum.repos.d/linaro-overlay.repo + + wget $source + rpm -i *.src.rpm + + sudo yum-builddep --nogpg -y ~/rpmbuild/SPECS/kernel*.spec || true + rpmbuild -ba ~/rpmbuild/SPECS/kernel*.spec + ln -s ~/rpmbuild + publishers: + - archive: + artifacts: 'rpmbuild/*RPMS/**' + - email: + recipients: 'ricardo.salveti@linaro.org' |