diff --git a/Jenkinsfile-Selenium b/Jenkinsfile-Selenium new file mode 100644 index 000000000..8940315d4 --- /dev/null +++ b/Jenkinsfile-Selenium @@ -0,0 +1,32 @@ +pipeline { + agent any + options { + disableConcurrentBuilds() + buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10')) + } + stages { + stage('Run Selenium tests') { + 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() + } + } +} diff --git a/README.md b/README.md index 4ec4f8196..9c5b29143 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ For more information, see `docs` -## Requirements +## Requirements_ * Java 8 (note that ONLY Java 8 is supported at this time; other later versions might work)