35 lines
650 B
Groovy
35 lines
650 B
Groovy
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..'
|
|
sh 'cd /srv/jenkins/workspace/2019Z/s416178-Punktonerzy/BackEnd'
|
|
sh 'mvn install'
|
|
}
|
|
}
|
|
stage('Test') {
|
|
steps {
|
|
echo 'Testing..'
|
|
}
|
|
}
|
|
stage('Deploy') {
|
|
steps {
|
|
echo 'Deploying....'
|
|
}
|
|
}
|
|
}
|
|
} |