Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
chore : jenkin file
Browse files Browse the repository at this point in the history
  • Loading branch information
kihyuk-jeong committed May 7, 2021
1 parent 99479d3 commit e3d15c3
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
File renamed without changes.
39 changes: 39 additions & 0 deletions Jenkinsfile-ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
pipeline {
agent any
environment {
PATH = "/opt/gradle/gradle-6.3/bin:$PATH"
SLACK_CHANNEL = '#jenkins-notification'
}

stages {
stage('Git Checkout') {
steps {
checkout scm
echo 'Git Checkout Success!'
}
}

stage('Test') {
steps {
sh 'gradle test'
echo 'test success'
}
}
stage('Build') {
steps {
sh 'gradle clean build --exclude-task test --exclude-task asciidoctor'
echo 'build success'
}
}
}

post {
success {
slackSend (channel: SLACK_CHANNEL, color: '#00FF00', message: "SUCCESSFUL: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})")
}

failure {
slackSend (channel: SLACK_CHANNEL, color: '#F01717', message: "FAILURE: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})")
}
}
}

0 comments on commit e3d15c3

Please sign in to comment.