Skip to content

Commit

Permalink
Use installer-products to avoid colliding with clone's products folder
Browse files Browse the repository at this point in the history
  • Loading branch information
merks committed Jun 21, 2023
1 parent 0695f17 commit bf9453f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
22 changes: 11 additions & 11 deletions releng/org.eclipse.oomph.releng/hudson/promote.sh
Expand Up @@ -55,14 +55,14 @@ set -o errexit
# $WORKSPACE/updates/content.jar
# $WORKSPACE/updates/org.eclipse.oomph.site.zip
#
# $WORKSPACE/products/
# $WORKSPACE/products/eclipse-inst(-jre)?(-restricted)?-(linux|mac|win)64.(tar.gz|dmg|exe|zip)
# $WORKSPACE/products/repository/
# $WORKSPACE/products/repository/binary/
# $WORKSPACE/products/repository/features/
# $WORKSPACE/products/repository/plugins/
# $WORKSPACE/products/repository/artifacts.jar
# $WORKSPACE/products/repository/content.jar
# $WORKSPACE/installer-products/
# $WORKSPACE/installer-products/eclipse-inst(-jre)?(-restricted)?-(linux|mac|win)64.(tar.gz|dmg|exe|zip)
# $WORKSPACE/installer-products/repository/
# $WORKSPACE/installer-products/repository/binary/
# $WORKSPACE/installer-products/repository/features/
# $WORKSPACE/installer-products/repository/plugins/
# $WORKSPACE/installer-products/repository/artifacts.jar
# $WORKSPACE/installer-products/repository/content.jar
#
##################################################################################################

Expand Down Expand Up @@ -123,7 +123,7 @@ rm -rf $PRODUCTS_TMP
mkdir $PRODUCTS_TMP
mkdir $PRODUCTS_TMP/latest

cd $WORKSPACE/products
cd $WORKSPACE/installer-products
for f in *.exe *.zip *.tar.gz *.dmg; do
echo "Promoting $f to $PRODUCTS_TMP/latest"
cp -a $f $PRODUCTS_TMP/latest
Expand All @@ -136,7 +136,7 @@ done

cd $WORKSPACE
cp -a $PROPERTIES $PRODUCTS_TMP/latest/product.properties
cp -a $WORKSPACE/products/repository $PRODUCTS_TMP/latest
cp -a $WORKSPACE/installer-products/repository $PRODUCTS_TMP/latest
$BASH $SCRIPTS/adjustArtifactRepository.sh \
$PRODUCTS_TMP/latest/repository \
$PRODUCTS/latest/repository \
Expand All @@ -148,7 +148,7 @@ $BASH $SCRIPTS/adjustContentRepository.sh \

if [[ "$BUILD_TYPE" != nightly ]]; then
cp -a $PROPERTIES $PRODUCTS_TMP/product.properties
cp -a $WORKSPACE/products/repository $PRODUCTS_TMP
cp -a $WORKSPACE/installer-products/repository $PRODUCTS_TMP
$BASH $SCRIPTS/adjustArtifactRepository.sh \
$PRODUCTS_TMP/repository \
$PRODUCTS/repository \
Expand Down
3 changes: 2 additions & 1 deletion releng/org.eclipse.oomph.releng/hudson/repackage.sh
Expand Up @@ -22,11 +22,12 @@ cd $WORKSPACE/updates
echo "Zipping update site"
zip -r -9 -qq org.eclipse.oomph.site.zip * -x plugins/*.pack.gz

PRODUCTS=$WORKSPACE/products
PRODUCTS=$WORKSPACE/installer-products
rm -rf $PRODUCTS
mkdir $PRODUCTS

TMP=$WORKSPACE/eclipse-installer
rm -rf $TMP

TIMESTAMP=$(date +%s%N)
echo "Copying repackaged-products"
Expand Down

0 comments on commit bf9453f

Please sign in to comment.