mirror of https://github.com/OpenVidu/openvidu.git
Jenkinsfile: fix KURENTO_JAVA_SNAPSHOT option
parent
958813a322
commit
1b0f4e0d93
|
@ -22,7 +22,6 @@ node('container') {
|
||||||
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_VERSION=$(mvn --batch-mode -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
|
cd kurento-java && 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
|
|
||||||
mvn dependency:get -DrepoUrl=https://maven.openvidu.io/repository/snapshots/ -Dartifact=org.kurento:kurento-client:$MVN_VERSION
|
mvn dependency:get -DrepoUrl=https://maven.openvidu.io/repository/snapshots/ -Dartifact=org.kurento:kurento-client:$MVN_VERSION
|
||||||
mvn dependency:get -DrepoUrl=https://maven.openvidu.io/repository/snapshots/ -Dartifact=org.kurento:kurento-jsonrpc-client-jetty:$MVN_VERSION
|
mvn dependency:get -DrepoUrl=https://maven.openvidu.io/repository/snapshots/ -Dartifact=org.kurento:kurento-jsonrpc-client-jetty:$MVN_VERSION
|
||||||
mvn dependency:get -DrepoUrl=https://maven.openvidu.io/repository/snapshots/ -Dartifact=org.kurento:kurento-jsonrpc-server:$MVN_VERSION
|
mvn dependency:get -DrepoUrl=https://maven.openvidu.io/repository/snapshots/ -Dartifact=org.kurento:kurento-jsonrpc-server:$MVN_VERSION
|
||||||
|
@ -100,6 +99,12 @@ node('container') {
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('OpenVidu parent build') {
|
stage('OpenVidu parent build') {
|
||||||
|
sh(script: '''#!/bin/bash -e
|
||||||
|
if $KURENTO_JAVA_SNAPSHOT ; then
|
||||||
|
cd kurento-java && 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
|
||||||
|
fi
|
||||||
|
'''.stripIndent())
|
||||||
sh 'cd openvidu && mvn --batch-mode versions:set-property -Dproperty=version.openvidu.java.client -DnewVersion=TEST'
|
sh 'cd openvidu && mvn --batch-mode versions:set-property -Dproperty=version.openvidu.java.client -DnewVersion=TEST'
|
||||||
sh 'cd openvidu && mvn --batch-mode -DskipTests=true clean install'
|
sh 'cd openvidu && mvn --batch-mode -DskipTests=true clean install'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue