From 1a7515c2218ba988931f94429ffe8a5cee0c6acd Mon Sep 17 00:00:00 2001 From: 2samueld Date: Tue, 9 Nov 2021 17:49:07 -0500 Subject: [PATCH 1/2] added unit test to jenkinsfile --- Jenkinsfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 349d0773c5df0..fbb9698f97a1f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,7 +29,29 @@ node { sh 'google-chrome --version' sh 'yarn kbn bootstrap' } + + stage('Build test plugins') { + sh """ + echo " -> building kibana platform plugins" + node scripts/build_kibana_platform_plugins \\ + --oss \\ + --no-examples \\ + --scan-dir "$env.KIBANA_DIR/test/plugin_functional/plugins" \\ + --workers 6 \\ + --verbose + """ + } + + stage('Unit Test') { + echo "Starting unit test..." + def utResult = sh returnStatus: true, script: 'CI=1 GCS_UPLOAD_PREFIX=fake yarn test:jest -u --ci' + if (utResult != 0) { + currentBuild.result = 'FAILURE' + } + + junit 'target/junit/TEST-Jest Tests*.xml' + } } } catch (e) { echo 'This will run only if failed' From f8a33a44b390ca166668c74c543509bb68143641 Mon Sep 17 00:00:00 2001 From: 2samueld Date: Wed, 10 Nov 2021 12:27:20 -0500 Subject: [PATCH 2/2] removed build test plugins --- Jenkinsfile | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fbb9698f97a1f..dec030c777fef 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,18 +29,6 @@ node { sh 'google-chrome --version' sh 'yarn kbn bootstrap' } - - stage('Build test plugins') { - sh """ - echo " -> building kibana platform plugins" - node scripts/build_kibana_platform_plugins \\ - --oss \\ - --no-examples \\ - --scan-dir "$env.KIBANA_DIR/test/plugin_functional/plugins" \\ - --workers 6 \\ - --verbose - """ - } stage('Unit Test') { echo "Starting unit test..."