Update Jenkinsfile

pull/73/head
Pablo Fuente Pérez 2018-05-21 15:15:39 +02:00 committed by GitHub
parent 0073d15287
commit 7b7dbf794d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 35 additions and 31 deletions

View File

@ -5,11 +5,14 @@ node('container') {
mycontainer.pull()
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") {
withEnv([
'npm_config_cache=npm-cache',
'HOME=.'
]) {
stage('Preparation') {
sh 'rm -rf openvidu || true'
sh 'rm -rf /opt/openvidu/recordings/* || true'
sh 'git clone https://github.com/OpenVidu/openvidu.git'
sh 'mkdir /.npm && chmod -R 777 /.npm || true'
}
stage('OpenVidu parent build') {
sh 'cd openvidu && mvn -DskipTests=true install'
@ -41,4 +44,5 @@ node('container') {
}
}
}
}
}