forked from coreos/fedora-coreos-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cci.jenkinsfile
30 lines (29 loc) · 1.01 KB
/
.cci.jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@Library('github.com/coreos/coreos-ci-lib@master') _
coreos.pod([image: "quay.io/coreos-assembler/coreos-assembler:latest", kvm: true, memory: "9Gi"]) {
stage("Build") {
dir("fedora-coreos-config") {
checkout scm
coreos.shwrap("./ci/validate")
}
dir("cosa") {
coreos.shwrap("""
cosa init ${env.WORKSPACE}/fedora-coreos-config
curl -LO https://raw.githubusercontent.com/coreos/fedora-coreos-releng-automation/master/scripts/download-overrides.py
python3 download-overrides.py
cosa build
""")
}
}
stage("Kola") {
try {
dir("cosa") {
coreos.shwrap("""
cosa kola run -- --parallel 8
""")
}
} finally {
coreos.shwrap("tar -cf - cosa/tmp/kola/ | xz -c9 > ${env.WORKSPACE}/kola.tar.xz")
archiveArtifacts allowEmptyArchive: true, artifacts: 'kola.tar.xz'
}
}
}