Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warm-up 실습 4주차 - chaeeun-Han #12

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from
55 changes: 55 additions & 0 deletions ci/chaeeun-han/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
pipeline {
agent any

stages {
stage('for the PR') {
when {
branch 'PR-*'
}
steps {
echo '*** this only runs for the PRs ***'
}
}

stage('github_clone') {
steps {
git branch: 'feature/10-chaeeun-han', credentialsId: 'CUBIXJenkinsTest', url: 'https://github.com/GDSC-CUBIX/EZPZ-Infra-Study.git'
}
}

stage('secrets.yml download') {
steps {
withCredentials([file(credentialsId: 'test-secrets', variable: 'dbConfigFile')]) {
script {
sh 'cp $dbConfigFile dev/chaeeun-han/ext-search-batch/src/test/resources/application-secrets.yml'
sh 'cp $dbConfigFile dev/chaeeun-han/ext-search-batch/src/main/resources/application-secrets.yml'
}
}
}
}

stage('build') {
steps {
dir('dev/chaeeun-han/ext-search-batch'){
sh """
chmod +x ./gradlew
./gradlew clean build -x test
"""
}
}
}
}

post {
success {
echo "*** buildStatus: SUCCESS"
}
failure {
echo "*** buildStatus: FAILURE"
}
// always {
// deleteDir()
// echo "*** delete Directory"
// }
}
}