Update Jenkinsfile

This commit is contained in:
Marcin Szczepański 2019-11-24 12:06:12 +01:00
parent 4457bb2d1e
commit 1d01f427f2

38
Jenkinsfile vendored
View File

@ -7,6 +7,20 @@ 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 '''
@ -17,39 +31,21 @@ pipeline {
} }
stage('Build') { stage('Build') {
steps { steps {
echo 'Building..' echo 'Building...'
sh ''' sh '''
cd BackEnd cd BackEnd
mvn clean install -Dmaven.test.skip=true mvn clean install -Dmaven.test.skip=true
sh ''' 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') { stage('Test') {
steps { steps {
echo 'Testing..' echo 'Testing...'
} }
} }
stage('Deploy') { stage('Deploy') {
steps { steps {
echo 'Deploying....' echo 'Deploying...'
} }
} }
} }