Update Jenkinsfile

pull/30/head
Pablo Fuente Pérez 2018-02-22 10:02:21 +01:00 committed by GitHub
parent 4247b42e99
commit 3789dcc54d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 22 deletions

View File

@ -4,6 +4,7 @@ node('container') {
def mycontainer = docker.image('openvidu/openvidu-test-e2e:latest') def mycontainer = docker.image('openvidu/openvidu-test-e2e:latest')
mycontainer.pull() mycontainer.pull()
mycontainer.inside("-p 4200:4200 -p 8443:8443 -u root -v /var/run/docker.sock:/var/run/docker.sock:rw -v /dev/shm:/dev/shm") { mycontainer.inside("-p 4200:4200 -p 8443:8443 -u root -v /var/run/docker.sock:/var/run/docker.sock:rw -v /dev/shm:/dev/shm") {
stages {
stage('Preparation') { stage('Preparation') {
sh 'rm -rf ~/openvidu || true' sh 'rm -rf ~/openvidu || true'
sh 'git clone https://github.com/OpenVidu/openvidu.git ~/openvidu' sh 'git clone https://github.com/OpenVidu/openvidu.git ~/openvidu'
@ -26,7 +27,12 @@ node('container') {
} }
stage ('E2E tests') { stage ('E2E tests') {
sh 'cd ~/openvidu/openvidu-test-e2e && mvn -DAPP_URL=https://172.17.0.1:4200/ -DOPENVIDU_URL=https://172.17.0.1:8443/ -DREMOTE_URL_CHROME=http://172.17.0.1:4444/wd/hub/ -DREMOTE_URL_FIREFOX=http://172.17.0.1:4445/wd/hub/ test' sh 'cd ~/openvidu/openvidu-test-e2e && mvn -DAPP_URL=https://172.17.0.1:4200/ -DOPENVIDU_URL=https://172.17.0.1:8443/ -DREMOTE_URL_CHROME=http://172.17.0.1:4444/wd/hub/ -DREMOTE_URL_FIREFOX=http://172.17.0.1:4445/wd/hub/ test'
//step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml']) }
}
post {
always {
junit "~/openvidu/openvidu-test-e2e/**/target/surefire-reports/TEST-*.xml"
}
} }
} }
} }