Skip to content

Commit

Permalink
ci: Add Jenkinsfile for build (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyojeongchoi committed Oct 10, 2023
1 parent 97d019b commit 20e8821
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions ci/hyojeongchoi/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
pipeline {
agent any

triggers {
githubPush()
}

stages {

stage('github_clone') {
steps {
git branch: 'feature/10-hyojeongchoi', credentialsId: 'Iv1.03782133274a9841', url: 'https://github.com/GDSC-CUBIX/EZPZ-Infra-Study.git'
}
}

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

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

post {
success {
echo "Success to build Gradle"
}
failure {
echo "Failed to build Gradle"
}
}
}

0 comments on commit 20e8821

Please sign in to comment.