jenkins: reuse exiting test case for format checks
@@ -561,15 +561,10 @@ def buildFormatChecks() {
return [(stageName): {
stage(stageName) {
withDockerEnv(DOCKER_IMAGES.sid, [DOCKER_OPTS.MOUNT_MIRROR]) {
- def tmpDir = 'build'
- dir(tmpDir) {
- sh """\
-tail -n +3 '../tests/shell/check_formatting.sh' > './check_formatting.sh'
-chmod +x ./check_formatting.sh"""
- }
- sh "${tmpDir}/check_formatting.sh"
- dir(tmpDir) {
+ dir('build') {
deleteDir()
+ cmake(env.WORKSPACE, [:])
+ ctest("Test -R testscr_check_formatting")
}
}
}
