This repository is currently being migrated. It's locked while the migration is in progress.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Builds, tests and lints using the Makefile. Test has a 'special' pipeline target of test-junit which outputs the test results in Junit, the form Jenkins requires.
- Loading branch information
Showing
2 changed files
with
53 additions
and
3 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
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
pipeline { | ||
agent { label 'dapper '} | ||
triggers { pollSCM('0 * * * *') } | ||
options { timestamps() } | ||
|
||
stages { | ||
// Build first to catch compilation errors - there's no point running | ||
// unit tests against code that doesn't compile. | ||
stage("Build") { | ||
steps { | ||
sh 'make -B build-docker' | ||
} | ||
|
||
// Always publish c2 and other binaries to Jenkins' filestore. | ||
post { success { archiveArtifacts artifacts: 'bin/*', fingerprint: true } } | ||
} | ||
|
||
stage("Quality checks") { | ||
parallel { | ||
stage("Unit test only") { | ||
steps { | ||
sh 'make -B test-junit-docker' | ||
} | ||
post { | ||
success { junit 'test_junit.xml' } | ||
} | ||
} | ||
|
||
stage("Lints") { | ||
steps { | ||
sh 'make lint-docker' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
post { | ||
always { | ||
sh 'make clean-docker' | ||
sh 'sudo chown -R $USER *' | ||
} | ||
} | ||
} |