From e895a495d6c344a8d3983a38886a99682b39148d Mon Sep 17 00:00:00 2001 From: James Allen Date: Fri, 1 Dec 2017 10:49:00 +0000 Subject: [PATCH] Move make clean step to before compile --- services/web/Jenkinsfile | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/services/web/Jenkinsfile b/services/web/Jenkinsfile index 15c698655d..9cdebb434c 100644 --- a/services/web/Jenkinsfile +++ b/services/web/Jenkinsfile @@ -70,6 +70,19 @@ pipeline { sh 'ls -l node_modules/.bin' } } + + stage('Unit Tests') { + steps { + sh 'make clean install' // Removes js files, so do before compile + sh 'make test_unit MOCHA_ARGS="--reporter=tap"' + } + } + + stage('Acceptance Tests') { + steps { + sh 'make test_acceptance MOCHA_ARGS="--reporter=tap"' + } + } stage('Compile') { agent { @@ -109,19 +122,6 @@ pipeline { } } - stage('Unit Tests') { - steps { - sh 'make clean install' - sh 'make test_unit MOCHA_ARGS="--reporter=tap"' - } - } - - stage('Acceptance Tests') { - steps { - sh 'make test_acceptance MOCHA_ARGS="--reporter=tap"' - } - } - stage('Package') { steps { sh 'rm -rf ./node_modules/grunt*'