From abced8fb6cae581afc2d1a039305dcc6971b5831 Mon Sep 17 00:00:00 2001 From: Jesse James Isler Date: Thu, 9 Jun 2022 11:41:42 +0200 Subject: [PATCH] fixed indentation --- Jenkinsfile | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a1602d0..b4af1c4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,22 +3,27 @@ pipeline { tools { nodejs "node" } - stages { - stage('NPM Install') { - sh 'npm install' - } - - stage('Test') { - sh 'ng test --progress=false --watch false' - } - - stage('Lint') { - sh 'ng lint' - } - - stage('Build') { - sh 'ng build --prod --aot --sm --progress=false' - } - } + stage('NPM Install') { + withEnv(["NPM_CONFIG_LOGLEVEL=warn"]) { + sh 'npm install' } + } + + stage('Test') { + withEnv(["CHROME_BIN=/usr/bin/chromium-browser"]) { + sh 'ng test --progress=false --watch false' + } + junit '**/test-results.xml' + } + + stage('Lint') { + sh 'ng lint' + } + + stage('Build') { + milestone() + sh 'ng build --prod --aot --sm --progress=false' + } + } +}