Jenkisfile: Get public kurento snapshots credential to download snapshots

pull/732/head
cruizba 2022-06-01 11:18:46 +02:00
parent bbb16189ef
commit 49dc9e7df0
1 changed files with 7 additions and 2 deletions

View File

@ -7,6 +7,11 @@ node('container') {
def commonFunctions = load 'commonFunctions.groovy'
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
def commitId = "${OPENVIDU_COMMIT}"
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-cache/test-layouts:/opt/openvidu/test-layouts',
'-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
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}") {