New Jenkinsfile
This commit is contained in:
parent
ca4a8fb28d
commit
4457bb2d1e
56
Jenkinsfile
vendored
Normal file
56
Jenkinsfile
vendored
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
tools {
|
||||||
|
maven 'Default'
|
||||||
|
jdk 'java-11-openjdk-amd64'
|
||||||
|
nodejs 'localNode'
|
||||||
|
}
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Initialize') {
|
||||||
|
steps {
|
||||||
|
sh '''
|
||||||
|
echo "PATH = ${PATH}"
|
||||||
|
echo "M2_HOME = ${M2_HOME}"
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
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..'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Deploy') {
|
||||||
|
steps {
|
||||||
|
echo 'Deploying....'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user