forked from coreos/coreos-ci-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fcosKola: also run upgrade tests by default
No reason not to do this always especially since we basically get it for free timewise (we run it in parallel to the main run, which normally takes longer anyway).
- Loading branch information
Showing
1 changed file
with
24 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,29 @@ | ||
// Run kola tests on the latest build in the cosa dir | ||
def call(cosaDir = "/srv/fcos") { | ||
stage("Kola") { | ||
try { | ||
shwrap("cd ${cosaDir} && cosa kola run --parallel 8") | ||
} finally { | ||
shwrap("tar -c -C ${cosaDir}/tmp kola | xz -c9 > ${env.WORKSPACE}/kola.tar.xz") | ||
archiveArtifacts allowEmptyArchive: true, artifacts: 'kola.tar.xz' | ||
stage('Kola') { | ||
parallel run: { | ||
stage("run") { | ||
try { | ||
shwrap("cd ${cosaDir} && cosa kola run --parallel 8") | ||
} finally { | ||
shwrap("tar -c -C ${cosaDir}/tmp kola | xz -c9 > ${env.WORKSPACE}/kola.tar.xz") | ||
archiveArtifacts allowEmptyArchive: true, artifacts: 'kola.tar.xz' | ||
} | ||
// sanity check kola actually ran and dumped its output in tmp/ | ||
shwrap("test -d ${cosaDir}/tmp/kola") | ||
} | ||
}, | ||
run_upgrades: { | ||
stage("run-upgrade") { | ||
try { | ||
shwrap("cd ${cosaDir} && cosa kola --upgrades") | ||
} finally { | ||
shwrap("tar -c -C ${cosaDir}/tmp kola-upgrade | xz -c9 > ${env.WORKSPACE}/kola-upgrade.tar.xz") | ||
archiveArtifacts allowEmptyArchive: true, artifacts: 'kola-upgrade.tar.xz' | ||
} | ||
// sanity check kola actually ran and dumped its output in tmp/ | ||
shwrap("test -d ${cosaDir}/tmp/kola-upgrade") | ||
} | ||
} | ||
// sanity check kola actually ran and dumped its output in tmp/ | ||
shwrap("test -d ${cosaDir}/tmp/kola") | ||
} | ||
} | ||
|