Update Jenkinsfile

pull/73/head
Pablo Fuente Pérez 2018-05-21 14:42:54 +02:00 committed by GitHub
parent 4e9eaf386c
commit e1a6f68dbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,8 @@ node('container') {
docker.image('elastest/eus-browser-firefox:3.7.1').withRun('-p 4445:4444 -p 5901:5900 --shm-size=1g') { d -> docker.image('elastest/eus-browser-firefox:3.7.1').withRun('-p 4445:4444 -p 5901:5900 --shm-size=1g') { d ->
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 4443:4443 -u root -e MY_UID=\$(id -u \$USER) -v /var/run/docker.sock:/var/run/docker.sock:rw -v /dev/shm:/dev/shm -v /opt/openvidu/recordings:/opt/openvidu/recordings") { def USER_ID = sh script: 'id -u $USER', returnStdout: true
mycontainer.inside("-p 4200:4200 -p 4443:4443 -e MY_UID=" + USER_ID + " -v /var/run/docker.sock:/var/run/docker.sock:rw -v /dev/shm:/dev/shm -v /opt/openvidu/recordings:/opt/openvidu/recordings") {
stage('Preparation') { stage('Preparation') {
sh 'rm -rf openvidu || true' sh 'rm -rf openvidu || true'
sh 'rm -rf /opt/openvidu/recordings/* || true' sh 'rm -rf /opt/openvidu/recordings/* || true'