Skip to content

Commit

Permalink
fcosKola: Automatically pick up tests/kola
Browse files Browse the repository at this point in the history
So we can use `-E` in CI, see
coreos/coreos-assembler#1252
  • Loading branch information
cgwalters authored and jlebon committed Mar 20, 2020
1 parent c095348 commit be2b202
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vars/fcosKola.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ def call(cosaDir = "/srv/fcos") {
stage('Kola') {
parallel run: {
stage("run") {
def args = ""
if (shwrapRc("test -d tests/kola") == 0) {
args += "--exttest ${env.WORKSPACE}/tests/kola"
}
try {
shwrap("cd ${cosaDir} && cosa kola run --parallel 8")
shwrap("cd ${cosaDir} && cosa kola run --parallel 8 ${args}")
} finally {
shwrap("tar -c -C ${cosaDir}/tmp kola | xz -c9 > ${env.WORKSPACE}/kola.tar.xz")
archiveArtifacts allowEmptyArchive: true, artifacts: 'kola.tar.xz'
Expand Down

0 comments on commit be2b202

Please sign in to comment.