2019-11-23 10:38:31 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
tools {
|
|
|
|
maven 'Default'
|
|
|
|
jdk 'java-11-openjdk-amd64'
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Initialize') {
|
|
|
|
steps {
|
|
|
|
sh '''
|
|
|
|
echo "PATH = ${PATH}"
|
|
|
|
echo "M2_HOME = ${M2_HOME}"
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
echo 'Building..'
|
2019-11-23 11:00:06 +01:00
|
|
|
sh '''
|
|
|
|
cd BackEnd
|
2019-11-23 11:09:04 +01:00
|
|
|
mvn clean install -Dmaven.test.skip=true
|
2019-11-23 11:00:06 +01:00
|
|
|
sh '''
|
2019-11-23 10:38:31 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Test') {
|
|
|
|
steps {
|
|
|
|
echo 'Testing..'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Deploy') {
|
|
|
|
steps {
|
|
|
|
echo 'Deploying....'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-11-18 17:36:54 +01:00
|
|
|
}
|