Add .cci.jenkinsfile
See https://github.com/jlebon/coreos-ci This is just a start to test, cut down from the rpm-ostree version.
This commit is contained in:
parent
96fb1decf4
commit
7febd9d36e
|
|
@ -0,0 +1,36 @@
|
||||||
|
// See https://github.com/jlebon/coreos-ci
|
||||||
|
// This was originally copied from the rpm-ostree one
|
||||||
|
@Library('github.com/coreos/coreos-ci-lib@master') _
|
||||||
|
|
||||||
|
COSA_IMAGE = 'quay.io/coreos-assembler/coreos-assembler:latest'
|
||||||
|
COSA_BUILDROOT_IMAGE = 'registry.svc.ci.openshift.org/coreos/cosa-buildroot:latest'
|
||||||
|
|
||||||
|
stage("Build") {
|
||||||
|
parallel rpms: {
|
||||||
|
coreos.pod(image: COSA_BUILDROOT_IMAGE, runAsUser: 0) {
|
||||||
|
checkout scm
|
||||||
|
sh """
|
||||||
|
set -xeuo pipefail
|
||||||
|
# fetch tags so `git describe` gives a nice NEVRA when building the RPM
|
||||||
|
git fetch origin --tags
|
||||||
|
git submodule update --init
|
||||||
|
|
||||||
|
env NOCONFIGURE=1 ./autogen.sh
|
||||||
|
./configure --with-openssl --with-curl --with-selinux
|
||||||
|
make
|
||||||
|
"""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
codestyle: {
|
||||||
|
coreos.pod(image: COSA_IMAGE) {
|
||||||
|
checkout scm
|
||||||
|
sh """
|
||||||
|
set -xeuo pipefail
|
||||||
|
# Jenkins by default only fetches the branch it's testing. Explicitly fetch master
|
||||||
|
# for ci-commitmessage-submodules.sh
|
||||||
|
git fetch origin +refs/heads/master:refs/remotes/origin/master
|
||||||
|
ci/ci-commitmessage-submodules.sh
|
||||||
|
"""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -29,8 +29,10 @@ cleanup_tmp() {
|
||||||
}
|
}
|
||||||
trap cleanup_tmp EXIT
|
trap cleanup_tmp EXIT
|
||||||
|
|
||||||
pkg_upgrade
|
if ! [ -x /usr/bin/git ]; then
|
||||||
pkg_install git
|
pkg_upgrade
|
||||||
|
pkg_install git
|
||||||
|
fi
|
||||||
|
|
||||||
gitdir=$(realpath $(pwd))
|
gitdir=$(realpath $(pwd))
|
||||||
# Create a temporary copy of this (using cp not git clone) so git doesn't
|
# Create a temporary copy of this (using cp not git clone) so git doesn't
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue