Jenkinsfile: openvidu-java-client local installation

pull/553/head
pabloFuente 2020-11-04 17:00:16 +01:00
parent 14453e5704
commit 8715d2109c
1 changed files with 5 additions and 1 deletions

View File

@ -82,6 +82,7 @@ node('container') {
}
stage('OpenVidu parent build') {
sh 'cd openvidu/openvidu-java-client && mvn --batch-mode versions:set -DnewVersion=1.0.0-TEST'
sh 'cd openvidu/openvidu-java-client && mvn clean compile package && cp target/openvidu-java-client*.jar /opt/openvidu/openvidu-java-client.jar'
sh 'cd openvidu && mvn --batch-mode versions:set-property -Dproperty=version.openvidu.java.client -DnewVersion=1.0.0-TEST'
sh 'cd openvidu && mvn --batch-mode -DskipTests=true clean install'
}
@ -94,7 +95,9 @@ node('container') {
stage('OpenVidu Server build') {
sh(script: '''#!/bin/bash
cd openvidu/openvidu-server/src/dashboard && npm install --unsafe-perm && npm install /opt/openvidu/openvidu-browser-*.tgz && export NG_CLI_ANALYTICS="false" && npm run build-prod
cd ../.. && mvn --batch-mode clean compile package
cd ../..
mvn --batch-mode org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install-file -Dfile=/opt/openvidu/openvidu-java-client.jar
mvn --batch-mode package
cp target/openvidu-server*.jar /opt/openvidu
'''.stripIndent())
}
@ -122,6 +125,7 @@ node('container') {
git checkout -f $OPENVIDU_TESTE2E_COMMIT
fi
cd openvidu-test-e2e
mvn --batch-mode org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install-file -Dfile=/opt/openvidu/openvidu-java-client.jar
sudo mvn --batch-mode -Dtest=OpenViduTestAppE2eTest -DAPP_URL=https://172.17.0.1:4200/ -DOPENVIDU_URL=https://172.17.0.1:4443/ -DREMOTE_URL_CHROME=http://172.17.0.1:6666/wd/hub/ -DREMOTE_URL_FIREFOX=http://172.17.0.1:6667/wd/hub/ -DEXTERNAL_CUSTOM_LAYOUT_URL=http://172.17.0.1:5555 -DEXTERNAL_CUSTOM_LAYOUT_PARAMS=sessionId,CUSTOM_LAYOUT_SESSION,secret,MY_SECRET test
git checkout -f $OPENVIDU_COMMIT
'''.stripIndent())