diff options
-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' |