Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP]: Jenkinsfile: add Testing stage #31

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,28 @@ podTemplate(cloud: 'openshift', label: 'coreos-assembler', yaml: pod, defaultCon
currentBuild.description = "⚡ ${newBuildID}"
}

stage('Test') {
// clone & build kola
utils.shwrap("""
git clone https://github.com/arithx/mantle
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah...we need to make this more convenient in cosa.

cd mantle
git checkout fcos_ci
./build kola kolet
""")

// determine the image & run kola
utils.shwrap("""
latest_build=\$(readlink builds/latest)
qcow=\$(ls builds/"\${latest_build}"/*-"\${latest_build}"-qemu.qcow2)
mantle/bin/kola -p unprivileged-qemu --qemu-image "\${qemu}" -b fcos run | tee
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO something like this should be coreos-assembler kola.

""")

// clean-up the mantle folder
utils.shwrap("""
rm -rf mantle/
""")
}

stage('Prune') {
utils.shwrap("""
coreos-assembler prune --keep=10
Expand Down