From 88b1bec5b793a2f7a15b3f4b2417cf96c5ac71cb Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Fri, 16 Sep 2022 11:59:36 +0300 Subject: [PATCH] Declarative Pipeline Jenkins environment --- Jenkinsfile | 66 ++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 55 insertions(+), 11 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7480b771..ae31c742 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -332,8 +332,12 @@ pipeline { } } stage("Build") { + environment { + CC=clang + CXX=clang++ + } steps { - cmakeBuild buildDir: 'build-clang-release-AVX2', buildType: 'Release', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=no -DFAT_RUNTIME=no', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]] + cmakeBuild buildDir: 'build-clang-release-AVX2', buildType: 'Release', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=no -DFAT_RUNTIME=no', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]] } } stage("Unit Test") { @@ -357,8 +361,12 @@ pipeline { } } stage("Build") { + environment { + CC=clang + CXX=clang++ + } steps { - cmakeBuild buildDir: 'build-clang-release-AVX512', buildType: 'Release', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=yes -DFAT_RUNTIME=no', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]] + cmakeBuild buildDir: 'build-clang-release-AVX512', buildType: 'Release', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=yes -DFAT_RUNTIME=no', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]] } } stage("Unit Test") { @@ -382,8 +390,12 @@ pipeline { } } stage("Build") { + environment { + CC=clang + CXX=clang++ + } steps { - cmakeBuild buildDir: 'build-clang-release-fat', buildType: 'Release', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=yes -DFAT_RUNTIME=yes', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]] + cmakeBuild buildDir: 'build-clang-release-fat', buildType: 'Release', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=yes -DFAT_RUNTIME=yes', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]] } } stage("Test") { @@ -402,8 +414,12 @@ pipeline { } } stage("Build") { + environment { + CC=clang + CXX=clang++ + } steps { - cmakeBuild buildDir: 'build-clang-debug-SSE', buildType: 'Debug', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=no -DBUILD_AVX512=no -DFAT_RUNTIME=no', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]] + cmakeBuild buildDir: 'build-clang-debug-SSE', buildType: 'Debug', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=no -DBUILD_AVX512=no -DFAT_RUNTIME=no', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]] } } stage("Unit Test") { @@ -427,8 +443,12 @@ pipeline { } } stage("Build") { + environment { + CC=clang + CXX=clang++ + } steps { - cmakeBuild buildDir: 'build-clang-debug-AVX2', buildType: 'Debug', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=no -DFAT_RUNTIME=no', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]] + cmakeBuild buildDir: 'build-clang-debug-AVX2', buildType: 'Debug', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=no -DFAT_RUNTIME=no', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]] } } stage("Unit Test") { @@ -452,8 +472,12 @@ pipeline { } } stage("Build") { + environment { + CC=clang + CXX=clang++ + } steps { - cmakeBuild buildDir: 'build-clang-debug-AVX512', buildType: 'Debug', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=yes -DFAT_RUNTIME=no', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]] + cmakeBuild buildDir: 'build-clang-debug-AVX512', buildType: 'Debug', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=yes -DFAT_RUNTIME=no', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]] } } stage("Unit Test") { @@ -477,8 +501,12 @@ pipeline { } } stage("Build") { + environment { + CC=clang + CXX=clang++ + } steps { - cmakeBuild buildDir: 'build-clang-debug-fat', buildType: 'Debug', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=yes -DFAT_RUNTIME=yes', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]] + cmakeBuild buildDir: 'build-clang-debug-fat', buildType: 'Debug', cleanBuild: true, cmakeArgs: '-DBUILD_AVX2=yes -DBUILD_AVX512=yes -DFAT_RUNTIME=yes', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]] } } stage("Test") { @@ -497,8 +525,12 @@ pipeline { } } stage("Build") { + environment { + CC=clang + CXX=clang++ + } steps { - cmakeBuild buildDir: 'build-clang-release-arm', buildType: 'Release', cleanBuild: true, cmakeArgs: '', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]] + cmakeBuild buildDir: 'build-clang-release-arm', buildType: 'Release', cleanBuild: true, cmakeArgs: '', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]] } } stage("Unit Test") { @@ -522,8 +554,12 @@ pipeline { } } stage("Build") { + environment { + CC=clang + CXX=clang++ + } steps { - cmakeBuild buildDir: 'build-clang-debug-arm', buildType: 'Debug', cleanBuild: true, cmakeArgs: '', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]] + cmakeBuild buildDir: 'build-clang-debug-arm', buildType: 'Debug', cleanBuild: true, cmakeArgs: '', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]] } } stage("Unit Test") { @@ -547,8 +583,12 @@ pipeline { } } stage("Build") { + environment { + CC=clang + CXX=clang++ + } steps { - cmakeBuild buildDir: 'build-clang-release-power', buildType: 'Release', cleanBuild: true, cmakeArgs: '', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]] + cmakeBuild buildDir: 'build-clang-release-power', buildType: 'Release', cleanBuild: true, cmakeArgs: '', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]] } } stage("Unit Test") { @@ -572,8 +612,12 @@ pipeline { } } stage("Build") { + environment { + CC=clang + CXX=clang++ + } steps { - cmakeBuild buildDir: 'build-clang-debug-power', buildType: 'Debug', cleanBuild: true, cmakeArgs: '', installation: 'InSearchPath', steps: [[withEnv: 'CC=clang CXX=clang++', args: '--parallel 4', withCmake: true]] + cmakeBuild buildDir: 'build-clang-debug-power', buildType: 'Debug', cleanBuild: true, cmakeArgs: '', installation: 'InSearchPath', steps: [[args: '--parallel 4', withCmake: true]] } } stage("Unit Test") {