mirror of https://github.com/OpenVidu/openvidu.git
Jenkisfile: Get public kurento snapshots credential to download snapshots
parent
bbb16189ef
commit
49dc9e7df0
|
@ -1,12 +1,17 @@
|
||||||
node('container') {
|
node('container') {
|
||||||
|
|
||||||
withEnv(["MVN_SETTINGS_VOLUME=/opt/openvidu-settings.xml",
|
withEnv(["MVN_SETTINGS_VOLUME=/opt/openvidu-settings.xml",
|
||||||
'MVN_OPTIONS=--settings /opt/openvidu-settings.xml -B']){
|
'MVN_OPTIONS=--settings /opt/openvidu-settings.xml -B']) {
|
||||||
// Load and execute common functions Groovy script
|
// Load and execute common functions Groovy script
|
||||||
sh 'curl -O https://raw.githubusercontent.com/OpenVidu/openvidu/master/openvidu-test-e2e/jenkins/commonFunctions.groovy'
|
sh 'curl -O https://raw.githubusercontent.com/OpenVidu/openvidu/master/openvidu-test-e2e/jenkins/commonFunctions.groovy'
|
||||||
def commonFunctions = load 'commonFunctions.groovy'
|
def commonFunctions = load 'commonFunctions.groovy'
|
||||||
commonFunctions.prepareTestingEnvironment()
|
commonFunctions.prepareTestingEnvironment()
|
||||||
|
|
||||||
|
// Copy snapshot credentials
|
||||||
|
withCredentials([file(credentialsId: 'kurento-snapshots-config', variable: 'mvn_settings')]) {
|
||||||
|
sh "cp \$mvn_settings ${MVN_SETTINGS_VOLUME}"
|
||||||
|
}
|
||||||
|
|
||||||
// Clone and checkout OpenVidu/openvidu repository
|
// Clone and checkout OpenVidu/openvidu repository
|
||||||
def commitId = "${OPENVIDU_COMMIT}"
|
def commitId = "${OPENVIDU_COMMIT}"
|
||||||
checkout([$class: 'GitSCM', branches: [[name: commitId]], userRemoteConfigs: [[url: 'https://github.com/OpenVidu/openvidu']], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'openvidu']]])
|
checkout([$class: 'GitSCM', branches: [[name: commitId]], userRemoteConfigs: [[url: 'https://github.com/OpenVidu/openvidu']], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'openvidu']]])
|
||||||
|
@ -17,7 +22,7 @@ node('container') {
|
||||||
'-v /opt/openvidu:/opt/openvidu',
|
'-v /opt/openvidu:/opt/openvidu',
|
||||||
'-v /opt/openvidu-cache/test-layouts:/opt/openvidu/test-layouts',
|
'-v /opt/openvidu-cache/test-layouts:/opt/openvidu/test-layouts',
|
||||||
'-v /opt/openvidu-cache/.m2:/root/.m2',
|
'-v /opt/openvidu-cache/.m2:/root/.m2',
|
||||||
"-v ${MAVEN_SETTINGS}:${MVN_SETTINGS_VOLUME}"].join(' ')
|
"-v ${MVN_SETTINGS_VOLUME}:${MVN_SETTINGS_VOLUME}"].join(' ')
|
||||||
|
|
||||||
// Run openvidu/openvidu-test-e2e container
|
// Run openvidu/openvidu-test-e2e container
|
||||||
docker.image("openvidu/openvidu-test-e2e:${DISTRO}").inside('--privileged -p 4200:4200 -p 4443:4443 -p 4114:4114 -u root -e MY_UID=0 ' + "${bindsArray}") {
|
docker.image("openvidu/openvidu-test-e2e:${DISTRO}").inside('--privileged -p 4200:4200 -p 4443:4443 -p 4114:4114 -u root -e MY_UID=0 ' + "${bindsArray}") {
|
||||||
|
|
Loading…
Reference in New Issue