Added Jenkinsfile

This commit is contained in:
JackCarterSmith 2018-11-06 13:52:53 +01:00
parent 22f4beb642
commit 54cdbef779

19
Jenkinsfile vendored
View File

@ -1,20 +1,29 @@
pipeline { pipeline {
agent any agent {
node {
label 'maître'
}
}
stages { stages {
stage('Setup') { stage('Setup') {
steps { steps {
ws(dir: 'orbsat')
sh './gradlew setupCIWorkspace' sh './gradlew setupCIWorkspace'
} }
} }
stage('Compilation') { stage('Checking code') {
steps {
sh './gradlew check'
}
}
stage('Compile') {
steps { steps {
sh './gradlew build' sh './gradlew build'
} }
} }
stage('Release') { stage('JAR release') {
steps { steps {
echo 'Compilation done.' sh './gradlew jar'
} }
} }
} }