Skip to content
Closed
Changes from 2 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
20 changes: 20 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,23 @@ for (int i = 0; i < platforms.size(); ++i) {

/* Execute our platforms in parallel */
parallel(branches)

node('docker') {
checkout scm

stage('Build Docker Image') {
sh 'make docker'
}

stage("Run known successful case(s)") {
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: prepare already more a parallel data structure, to run many variations in parallel, so it's easy to add more as we go: a must-fail one, etc.

Copy link
Member Author

Choose a reason for hiding this comment

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

TODO 2:

  • download a Jenkins WAR and map it, so the testing stability is not subject to the new available weeklies

sh '''docker run --rm \
-v $(pwd)/out:/pct/out -e JDK_VERSION=11 \
-e ARTIFACT_ID=buildtriggerbadge -e VERSION=buildtriggerbadge-2.10 \
jenkins/pct
'''
archiveArtifacts artifacts: "out/**"

sh 'cat out/pct-report.html | grep "Tests : Success"'

}
}