modify Jenkinsfile

This commit is contained in:
Stanislav Bezuhlyi 2021-03-31 21:19:24 +03:00
parent 6674ab172f
commit 4d8ec3d197

22
Jenkinsfile vendored
View file

@ -1,11 +1,29 @@
pipeline {
agent any
tools {
maven 'Maven 3.3.9'
jdk 'jdk8'
}
stages {
stage('Checkout SCM') {
steps {
checkout scm
}
}
stage ('Initialize') {
steps {
sh '''
echo "PATH = ${PATH}"
echo "M2_HOME = ${M2_HOME}"
'''
}
}
stage('Build') {
steps {
echo 'Building..'
}
sh 'chmod +x ./gradlew'
sh './gradlew build -x test'
}
}
stage('Test') {
steps {