2023-02-13 17:13:15 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
echo 'Building..'
|
2023-02-13 17:40:16 +01:00
|
|
|
withGradle {
|
2023-02-13 17:41:28 +01:00
|
|
|
sh 'gradle build'
|
2023-02-13 17:40:16 +01:00
|
|
|
}
|
|
|
|
|
2023-02-13 17:13:15 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Test') {
|
|
|
|
steps {
|
|
|
|
echo 'Testing...'
|
2023-02-13 17:40:16 +01:00
|
|
|
withGradle {
|
2023-02-13 17:41:28 +01:00
|
|
|
sh 'gradle test'
|
2023-02-13 17:40:16 +01:00
|
|
|
}
|
2023-02-13 17:13:15 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-02-13 17:40:16 +01:00
|
|
|
}
|