Jenkinsfile: fix curl command

pull/658/head
pabloFuente 2021-10-25 11:30:05 +02:00
parent ad8b7e6053
commit fe34c687b9
1 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ node('container') {
sh(script: '''#!/bin/bash -xe sh(script: '''#!/bin/bash -xe
FAKE_VIDEO=/opt/openvidu-cache/barcode.y4m FAKE_VIDEO=/opt/openvidu-cache/barcode.y4m
if [ ! -f $FAKE_VIDEO ]; then if [ ! -f $FAKE_VIDEO ]; then
curl --url https://github.com/OpenVidu/openvidu/raw/master/openvidu-test-e2e/docker/barcode.y4m --create-dirs --output /opt/openvidu-cache/barcode.y4m curl --location https://github.com/OpenVidu/openvidu/raw/master/openvidu-test-e2e/docker/barcode.y4m --create-dirs --output /opt/openvidu-cache/barcode.y4m
else else
echo "File $FAKE_VIDEO already exists" echo "File $FAKE_VIDEO already exists"
fi fi
@ -16,14 +16,14 @@ node('container') {
sh(script: '''#!/bin/bash -xe sh(script: '''#!/bin/bash -xe
FAKE_AUDIO=/opt/openvidu-cache/fakeaudio.wav FAKE_AUDIO=/opt/openvidu-cache/fakeaudio.wav
if [ ! -f $FAKE_AUDIO ]; then if [ ! -f $FAKE_AUDIO ]; then
curl --url https://github.com/OpenVidu/openvidu/raw/master/openvidu-test-e2e/docker/fakeaudio.wav --create-dirs --output /opt/openvidu-cache/fakeaudio.wav curl --location https://github.com/OpenVidu/openvidu/raw/master/openvidu-test-e2e/docker/fakeaudio.wav --create-dirs --output /opt/openvidu-cache/fakeaudio.wav
else else
echo "File $FAKE_AUDIO already exists" echo "File $FAKE_AUDIO already exists"
fi fi
'''.stripIndent()) '''.stripIndent())
}, },
'Download custom layout': { 'Download custom layout': {
sh 'curl --url https://raw.githubusercontent.com/OpenVidu/openvidu/master/openvidu-test-e2e/docker/my-custom-layout/index.html --create-dirs --output /opt/openvidu-cache/test-layouts/layout1/index.html' sh 'curl --location https://raw.githubusercontent.com/OpenVidu/openvidu/master/openvidu-test-e2e/docker/my-custom-layout/index.html --create-dirs --output /opt/openvidu-cache/test-layouts/layout1/index.html'
} }
) )
parallel ( parallel (