Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dir ('tnd-functional-tests'){
- unstash 'TND-FUNCTIONAL-TESTS'+"${BUILD_TAG}"
- }
- if("${SKIP_FUNCTIONAL}" == 'false')
- smpTools.runSMPFunctionalTests("-Dbrowser=chrome -Dweb-driver=chromedriverlinux.bin -Dssh.username=${sshusername} -Dssh.password=${sshpassword} -Denv=${bddEnv} -Dcucumber.options='--tags ${featuretags}'","Test Report")
- }// this function is in smp.gvy see below
- }`
- try {
- sh '''
- if [ ! "$(docker ps -q -f name=tnd-chrome)" ]; then
- if [ "$(docker ps -aq -f status=exited -f name=tnd-chrome)" ]; then
- # cleanup
- echo "Removing exited docker container..."
- docker rm tnd-chrome
- fi
- echo "Running the docker container again..."
- docker run -d -e JAVA_OPTS=-Xms512m -e JAVA_OPTS=-Xmx1024m -v /dev/shm:/dev/shm -e DBUS_SESSION_BUS_ADDRESS=/dev/null --name tnd-chrome csa-docker.apro.nbnco.net.au/tnd/tnd-chrome:v1
- DO_SSH_TUNNEL="true"
- else
- echo "Running docker instance tnd-chrome found...Using it"
- fi
- sudo chmod a+rwx ./src/test/resources/webdriver/*
- echo "Args for maven ${arguments}" //this prints null for arguments
- mvn clean verify ${arguments}
- '''
- } catch(err) {
- if (currentBuild.result == 'UNSTABLE')
- currentBuild.result = 'FAILURE'
- throw err
- } finally {
- publishHTML (target: [
- allowMissing: true,
- alwaysLinkToLastBuild: false,
- keepAll: true,
- reportDir: 'target/site/serenity',
- reportFiles: 'index.html',
- reportName: "${reportLabel} BUILD ${env.BUILD_NUMBER}"
- ])
- }
- }`
Add Comment
Please, Sign In to add comment