Commit f3c553c9 authored by Cédric Traizet's avatar Cédric Traizet

Merge branch '2076-develop-package-names-3' into 'develop'

Resolve "Develop package names"

Closes #2076

See merge request !740
parents ac75fa33 7d10e3ce
Pipeline #5594 passed with stages
in 42 minutes and 15 seconds
...@@ -47,11 +47,29 @@ else # On release ...@@ -47,11 +47,29 @@ else # On release
ssh otbpush@otb5-vm2.orfeo-toolbox.org rm -rf ${jobs_directory}/* ssh otbpush@otb5-vm2.orfeo-toolbox.org rm -rf ${jobs_directory}/*
fi fi
# Remove old package and source file
echo "Removing old package and sources"
ssh otbpush@otb5-vm2.orfeo-toolbox.org \
rm ${jobs_directory}/OTB-*.zip \
${jobs_directory}/OTB-*.tar.*
# Push package # Push package
echo "Pushing binary packages" echo "Pushing new binary and sources packages"
scp OTB-*.{run,zip} otbpush@otb5-vm2.orfeo-toolbox.org:${jobs_directory}/. scp OTB-*.{run,zip} otbpush@otb5-vm2.orfeo-toolbox.org:${jobs_directory}/.
echo "Removing old CookBook"
ssh otbpush@otb5-vm2.orfeo-toolbox.org \
rm ${jobs_directory}/CookBook-*-html.tar.gz
echo "Removing old Doxygen"
ssh otbpush@otb5-vm2.orfeo-toolbox.org \
rm ${jobs_directory}/OTB-Doxygen-*.tar.bz2
# Push doc # Push doc
echo "Pushing documentation" echo "Pushing new documentation"
scp {CookBook-*-html.tar.gz,OTB-Doxygen-*.tar.bz2} otbpush@otb5-vm2.orfeo-toolbox.org:${jobs_directory}/. scp {CookBook-*-html.tar.gz,OTB-Doxygen-*.tar.bz2} otbpush@otb5-vm2.orfeo-toolbox.org:${jobs_directory}/.
# Create zip, tar.gz and tar.xy source # Create zip, tar.gz and tar.xy source
...@@ -59,11 +77,12 @@ echo "Creating source tarball and zip" ...@@ -59,11 +77,12 @@ echo "Creating source tarball and zip"
git archive --format=zip -o OTB-sources-"$CI_COMMIT_SHORT_SHA".zip HEAD git archive --format=zip -o OTB-sources-"$CI_COMMIT_SHORT_SHA".zip HEAD
git archive --format=tgz -o OTB-sources-"$CI_COMMIT_SHORT_SHA".tar.gz HEAD git archive --format=tgz -o OTB-sources-"$CI_COMMIT_SHORT_SHA".tar.gz HEAD
git archive --format=tar.xz -o OTB-sources-"$CI_COMMIT_SHORT_SHA".tar.xz HEAD git archive --format=tar.xz -o OTB-sources-"$CI_COMMIT_SHORT_SHA".tar.xz HEAD
# Remove old source file # Remove old source file
echo "Removing old sources" #echo "Removing old sources"
ssh otbpush@otb5-vm2.orfeo-toolbox.org \ #ssh otbpush@otb5-vm2.orfeo-toolbox.org \
rm ${jobs_directory}/OTB-sources-*.zip \ #rm ${jobs_directory}/OTB-sources-*.zip \
${jobs_directory}/OTB-sources-*.tar.* #${jobs_directory}/OTB-sources-*.tar.*
# Push new source file # Push new source file
echo "Pushing new sources" echo "Pushing new sources"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment