Update Jenkinsfile
This commit is contained in:
parent
4457bb2d1e
commit
1d01f427f2
38
Jenkinsfile
vendored
38
Jenkinsfile
vendored
@ -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...'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user