From ca6c7bf08db772d997656a23c001a82320a0f040 Mon Sep 17 00:00:00 2001 From: Mihir Soni Date: Wed, 3 Feb 2021 21:32:18 +0000 Subject: [PATCH] [CI] Update Jenkis file with basic setup --- Jenkinsfile | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3b68cde20657..6e1e55eb1ca2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,21 +1,18 @@ -#!/bin/groovy - -library 'kibana-pipeline-library' -kibanaLibrary.load() - -kibanaPipeline(timeoutMinutes: 155, checkPrChanges: true, setCommitStatus: true) { - slackNotifications.onFailure(disabled: !params.NOTIFY_ON_FAILURE) { - githubPr.withDefaultPrComments { - ciStats.trackBuild { - catchError { - retryable.enable() - kibanaPipeline.allCiTasks() - } - } +node { + label 'website' + sh "env" + echo "BRANCH: ${scmVars.GIT_BRANCH}, COMMIT: ${scmVars.GIT_COMMIT}" + stage('bootstrap') { + sh 'yarn kbn bootstrap' + } + stage('unit tests') { + sh 'yarn test:jest' + } + stage('integration tests') { + sh 'yarn test:jest_integration' + sh 'yarn test:mocha' + } + stage('build'){ + sh 'yarn build --oss --skip-os-packages' } - } - - if (params.NOTIFY_ON_FAILURE) { - kibanaPipeline.sendMail() - } }