openvidu-test-e2e: Jenkinsfile update

pull/255/head
pabloFuente 2019-03-01 11:09:17 +01:00
parent b46bde9298
commit 658f76c014
1 changed files with 2 additions and 3 deletions

View File

@ -14,14 +14,13 @@ node('container') {
sh 'rm -rf kurento-java || true' sh 'rm -rf kurento-java || true'
sh 'rm -rf /opt/openvidu/recordings/* || true' sh 'rm -rf /opt/openvidu/recordings/* || true'
sh 'git clone https://github.com/OpenVidu/openvidu.git' sh 'git clone https://github.com/OpenVidu/openvidu.git'
BUILD_STATUS = sh(returnStatus: true, script: '''#!/bin/bash sh(script: '''#!/bin/bash
if $KURENTO_JAVA_SNAPSHOT ; then if $KURENTO_JAVA_SNAPSHOT ; then
git clone https://github.com/Kurento/kurento-java.git git clone https://github.com/Kurento/kurento-java.git
cd kurento-java && mvn --batch-mode clean install && MVN_VERSION=$(mvn --batch-mode -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) cd kurento-java && mvn --batch-mode clean install && MVN_VERSION=$(mvn --batch-mode -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
cd ../openvidu && mvn --batch-mode versions:set-property -Dproperty=version.kurento -DnewVersion=$MVN_VERSION cd ../openvidu && mvn --batch-mode versions:set-property -Dproperty=version.kurento -DnewVersion=$MVN_VERSION
fi fi
'''.stripIndent()).result '''.stripIndent())
sh 'echo "Kurento Java build status: ${BUILD_STATUS}"'
} }
stage('OpenVidu parent build') { 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 --batch-mode versions:set -DnewVersion=1.0.0-TEST'