24 lines
438 B
Groovy
24 lines
438 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
echo 'Building..'
|
|
withGradle {
|
|
sh 'gradle build'
|
|
}
|
|
|
|
}
|
|
}
|
|
stage('Test') {
|
|
steps {
|
|
echo 'Testing...'
|
|
withGradle {
|
|
sh 'gradle test'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|