diff --git a/Jenkinsfile b/Jenkinsfile index 68a00b2..aeb8b9c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,20 +6,6 @@ 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 ''' @@ -47,5 +33,18 @@ pipeline { echo 'Deploying...' } } + stage('Front-end') { + agent { + docker { image 'node:7-alpine' } + } + steps { + echo 'Building FrontEnd...' + sh ''' + cd FrontEnd + npm install + ng build --prod + ''' + } + } } } \ No newline at end of file