Added Jenkinsfile
This commit is contained in:
parent
22f4beb642
commit
54cdbef779
19
Jenkinsfile
vendored
19
Jenkinsfile
vendored
@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user