diff options
author | Colin Walters <walters@verbum.org> | 2020-02-03 15:42:28 +0000 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2020-02-03 16:57:24 +0000 |
commit | 7febd9d36ecb52292ec93f6c7697470bb40d86ed (patch) | |
tree | 2f743fb7ff0d5fbbcbdd864db656e0a02002cd86 /.cci.jenkinsfile | |
parent | 96fb1decf49d0dd67f667268468eec0ead9f3c2e (diff) | |
download | ostree-7febd9d36ecb52292ec93f6c7697470bb40d86ed.tar.gz |
Add .cci.jenkinsfile
See https://github.com/jlebon/coreos-ci
This is just a start to test, cut down from the rpm-ostree version.
Diffstat (limited to '.cci.jenkinsfile')
-rw-r--r-- | .cci.jenkinsfile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/.cci.jenkinsfile b/.cci.jenkinsfile new file mode 100644 index 00000000..9acb34c5 --- /dev/null +++ b/.cci.jenkinsfile @@ -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 + """ + } +} +} |