Added Jenkinsfile

This commit is contained in:
JackCarterSmith 2018-11-06 14:42:12 +01:00
parent 109eaae501
commit 388d673c86

16
Jenkinsfile vendored
View File

@ -8,9 +8,7 @@ pipeline {
stages {
stage('Setup') {
steps {
sh '''pwd
ls -la
chmod -R 777 .
sh '''chmod +x gradlew
./gradlew setupCIWorkspace'''
}
}
@ -24,10 +22,22 @@ chmod -R 777 .
sh './gradlew build'
}
}
stage('JAR release') {
parallel {
stage('JAR release') {
steps {
sh './gradlew jar'
}
}
stage('Test') {
steps {
sh './gradlew test'
}
}
}
}
}
environment {
JAVA_HOME = '/usr/java/jre1.8.0_192'
}
}