jenkins: define buildDir earlier
@@ -714,13 +714,13 @@ def buildAndTest(testName, image, extraCmakeFlags = [:],
return [(testName): {
stage(testName) {
withDockerEnv(image, dockerOpts) {
- try {
- ensureDirsExist(getElektraWritableFiles())
-
// we use a space in the directory to test if paths are
// properly escaped
def buildDir='build directory'
+ try {
+ ensureDirsExist(getElektraWritableFiles())
+
dir(buildDir) {
deleteDir()
cmake(env.WORKSPACE, cmakeFlags)
