23 lines
491 B
Groovy
23 lines
491 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('github clone') {
|
|
steps {
|
|
git branch: '${BUILD_BRANCH}', url: 'https://github.com/beaniejoy/dongne-cafe-api.git'
|
|
}
|
|
}
|
|
|
|
stage('Test') {
|
|
steps {
|
|
sh './gradlew :dongne-service-api:test'
|
|
}
|
|
}
|
|
|
|
stage('Build') {
|
|
steps {
|
|
sh './gradlew clean :dongne-service-api:build -x test'
|
|
}
|
|
}
|
|
}
|
|
} |