Update Jenkinsfile

This commit is contained in:
Marcin Szczepański 2019-11-24 12:08:41 +01:00
parent 6c440f3ad7
commit c6da2ff707

27
Jenkinsfile vendored
View File

@ -6,20 +6,6 @@ pipeline {
} }
stages { 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') { stage('Initialize') {
steps { steps {
sh ''' sh '''
@ -47,5 +33,18 @@ pipeline {
echo 'Deploying...' echo 'Deploying...'
} }
} }
stage('Front-end') {
agent {
docker { image 'node:7-alpine' }
}
steps {
echo 'Building FrontEnd...'
sh '''
cd FrontEnd
npm install
ng build --prod
'''
}
}
} }
} }