diff --git a/Jenkinsfile b/Jenkinsfile index e69de29..c929b61 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -0,0 +1,23 @@ +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' + } + } + } +} \ No newline at end of file