Update Jenkinsfile

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

View File

@ -4,7 +4,6 @@ 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'
@ -27,14 +26,9 @@ 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'
}
}
post {
always {
junit "~/openvidu/openvidu-test-e2e/**/target/surefire-reports/TEST-*.xml" junit "~/openvidu/openvidu-test-e2e/**/target/surefire-reports/TEST-*.xml"
} }
} }
} }
} }
} }
}