From 1a51cd9c8b883f60b9ecee589a1b91c5c50ddeaa Mon Sep 17 00:00:00 2001 From: SergeySeroshtan Date: Mon, 26 Jul 2021 12:49:12 +0300 Subject: [PATCH] Add option to disable build of C artifacts (jenkins) Option name: DISABLE_C_BUILDS. --- Jenkinsfile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d5b7cef5c..2207dd15d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,6 +9,9 @@ properties([ booleanParam(name: 'RUN_ANDROID_TESTS', defaultValue: true, description: 'Run Android instrumental tests.'), + booleanParam(name: 'DISABLE_C_BUILDS', defaultValue: false, + description: 'Disable build of C artifacts'), + booleanParam(name: 'DISABLE_PHP_BUILDS', defaultValue: false, description: 'Disable build of PHP artifacts'), @@ -66,10 +69,12 @@ def nodes = [:] // // Language: C // -nodes['lang-c-platform-linux'] = build_LangC_Unix('build-centos7', 'x86_64') -nodes['lang-c-platform-macos-x86_64'] = build_LangC_Unix('build-os-x', 'x86_64') -nodes['lang-c-platform-macos-arm64'] = build_LangC_Unix('build-os-x', 'arm64') -nodes['lang-c-platform-windows'] = build_LangC_Windows('build-win10') +if (!params.DISABLE_C_BUILDS) { + nodes['lang-c-platform-linux'] = build_LangC_Unix('build-centos7', 'x86_64') + nodes['lang-c-platform-macos-x86_64'] = build_LangC_Unix('build-os-x', 'x86_64') + nodes['lang-c-platform-macos-arm64'] = build_LangC_Unix('build-os-x', 'arm64') + nodes['lang-c-platform-windows'] = build_LangC_Windows('build-win10') +} // // Language: PHP