Added Jenkinsfile

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

20
Jenkinsfile vendored
View File

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