mirror of https://github.com/OpenVidu/openvidu.git
Update Jenkinsfile
parent
4247b42e99
commit
3789dcc54d
|
@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue