mirror of https://github.com/OpenVidu/openvidu.git
Jenkinsfile updated to avoid openvidu-java-client overwrite when checking out
parent
35e62f3c2c
commit
e3c61b1707
|
@ -38,11 +38,6 @@ node('container') {
|
||||||
fi
|
fi
|
||||||
'''.stripIndent())
|
'''.stripIndent())
|
||||||
}
|
}
|
||||||
stage('OpenVidu parent build') {
|
|
||||||
sh 'cd openvidu/openvidu-java-client && mvn --batch-mode versions:set -DnewVersion=1.0.0-TEST'
|
|
||||||
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'
|
|
||||||
}
|
|
||||||
stage('OpenVidu Browser build') {
|
stage('OpenVidu Browser build') {
|
||||||
sh(script: '''#!/bin/bash
|
sh(script: '''#!/bin/bash
|
||||||
cd openvidu
|
cd openvidu
|
||||||
|
@ -74,6 +69,11 @@ node('container') {
|
||||||
stage('OpenVidu TestApp build') {
|
stage('OpenVidu TestApp build') {
|
||||||
sh 'cd openvidu/openvidu-testapp && npm install --unsafe-perm && npm install /opt/openvidu/openvidu-browser-*.tgz && npm install /opt/openvidu/openvidu-node-client-*.tgz && export NG_CLI_ANALYTICS="false" && ./node_modules/@angular/cli/bin/ng build --prod'
|
sh 'cd openvidu/openvidu-testapp && npm install --unsafe-perm && npm install /opt/openvidu/openvidu-browser-*.tgz && npm install /opt/openvidu/openvidu-node-client-*.tgz && export NG_CLI_ANALYTICS="false" && ./node_modules/@angular/cli/bin/ng build --prod'
|
||||||
}
|
}
|
||||||
|
stage('OpenVidu parent build') {
|
||||||
|
sh 'cd openvidu/openvidu-java-client && mvn --batch-mode versions:set -DnewVersion=1.0.0-TEST'
|
||||||
|
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'
|
||||||
|
}
|
||||||
stage('OpenVidu Server unit tests') {
|
stage('OpenVidu Server unit tests') {
|
||||||
sh 'cd openvidu/openvidu-server && mvn --batch-mode -Dtest=io.openvidu.server.test.unit.*Test test'
|
sh 'cd openvidu/openvidu-server && mvn --batch-mode -Dtest=io.openvidu.server.test.unit.*Test test'
|
||||||
}
|
}
|
||||||
|
@ -82,15 +82,9 @@ node('container') {
|
||||||
}
|
}
|
||||||
stage('OpenVidu Server build') {
|
stage('OpenVidu Server build') {
|
||||||
sh(script: '''#!/bin/bash
|
sh(script: '''#!/bin/bash
|
||||||
cd openvidu
|
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
|
||||||
if [[ $OPENVIDU_SERVER_COMMIT != "default" ]]; then
|
|
||||||
git checkout -f $OPENVIDU_SERVER_COMMIT
|
|
||||||
fi
|
|
||||||
cd 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 clean compile package
|
||||||
cp target/openvidu-server*.jar /opt/openvidu
|
cp target/openvidu-server*.jar /opt/openvidu
|
||||||
cd ..
|
|
||||||
git checkout -f $OPENVIDU_COMMIT
|
|
||||||
'''.stripIndent())
|
'''.stripIndent())
|
||||||
}
|
}
|
||||||
stage ('Environment Launch') {
|
stage ('Environment Launch') {
|
||||||
|
|
Loading…
Reference in New Issue