Update Jenkinsfile
This commit is contained in:
parent
6c440f3ad7
commit
c6da2ff707
27
Jenkinsfile
vendored
27
Jenkinsfile
vendored
@ -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
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user