From 1d01f427f26c383f08c9a9b794949116b45260ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Szczepa=C5=84ski?= Date: Sun, 24 Nov 2019 12:06:12 +0100 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 38 +++++++++++++++++--------------------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d4b1bde..c77163f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,6 +7,20 @@ pipeline { } stages { + stage('Front-end') { + agent { + docker { image 'node:7-alpine' } + } + steps { + echo 'Building FrontEnd...' + sh ''' + cd FrontEnd + npm install -g @angular/cli@1.7.4; + npm install + ng build --prod + ''' + } + } stage('Initialize') { steps { sh ''' @@ -17,39 +31,21 @@ pipeline { } stage('Build') { steps { - echo 'Building..' + echo 'Building...' sh ''' cd BackEnd mvn clean install -Dmaven.test.skip=true sh ''' } } - stage('Install dependencies') { - steps { - echo 'Install dependencies...' - sh ''' - cd FrontEnd - npm install -g @angular/cli@1.7.4; - npm install - ''' - } - } - stage('Build FrontEnd') { - steps { - echo 'Building...' - sh ''' - ng build --prod - ''' - } - } stage('Test') { steps { - echo 'Testing..' + echo 'Testing...' } } stage('Deploy') { steps { - echo 'Deploying....' + echo 'Deploying...' } } }