Files
CustomAuthenticationEntryPoint/Jenkinsfile-service
2023-02-19 17:32:58 +09:00

37 lines
741 B
Plaintext

pipeline {
agent any
tools {
jdk("openjdk-17")
}
stages {
stage('Init') {
steps {
sh 'printenv'
migration_script = './script/db_migration.sh'
}
}
stage('DB Migrate') {
steps {
sh """
chmod 755 ${migration_script}
/bin/bash ${migration_script}
"""
}
}
stage('Test') {
steps {
sh './gradlew clean :dongne-service-api:test'
}
}
stage('Build') {
steps {
sh './gradlew clean :dongne-service-api:build -x test'
}
}
}
}