Skip to content

Commit

Permalink
[SHIBUI-794]
Browse files Browse the repository at this point in the history
WIP
  • Loading branch information
jj committed Sep 14, 2018
1 parent 310cfe2 commit 7928889
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,36 @@ pipeline {
}
}
}
stage('Build Docker images') {
when {
expression {
return GIT_BRANCH in ['master', 'SHIBUI-794']
}
}
steps {
sh '''./gradlew docker
'''
}
}
stage('Deploy') {
when {
expression {
return GIT_BRANCH in ['master', 'SHIBUI-794']
}
}
steps {
sh '''
docker run unicon/shibui
'''
}
}
}
post {
failure {
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: emailextrecipients([[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']])])
}
success {
emailext body: '''${SCRIPT, template="groovy-text.template"}''', recipientProviders: [[$class: 'DevelopersRecipientProvider'], [$class: 'RequesterRecipientProvider']], subject: '[SHIBUI] Build Success'
}
}
}

0 comments on commit 7928889

Please sign in to comment.