Skip to content

Commit

Permalink
SHIBUI-1506
Browse files Browse the repository at this point in the history
  • Loading branch information
dima767 committed Oct 11, 2019
1 parent b77bd1a commit b034dc5
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Jenkinsfile-Selenium
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
pipeline {
agent any
options {
disableConcurrentBuilds()
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
}
stages {
stage('Run Selenium tests') {
when {
expression {
return GIT_BRANCH == 'SHIBUI-1509'
}
}
steps {
sh '''
./gradlew integrationTest -Dselenium.host=jenkins
'''
}
post {
always {
junit 'backend/build/test-results/integrationTest/**/*.xml'
}
}
}
}
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'
}
always {
cleanWs()
}
}
}

0 comments on commit b034dc5

Please sign in to comment.