nightly tarball: put the SSH target in a variable
Just to make the scripts a little less error-prone. Also split up the ssh/scp lines just for readability. Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
Этот коммит содержится в:
родитель
328b654626
Коммит
e642d1d91c
@ -17,6 +17,9 @@ raw_uri=https://raw.github.com/open-mpi/hwloc
|
|||||||
# where to put built tarballs
|
# where to put built tarballs
|
||||||
outputroot=$HOME/hwloc/nightly
|
outputroot=$HOME/hwloc/nightly
|
||||||
|
|
||||||
|
# Target where to scp the final tarballs
|
||||||
|
output_ssh_target=ompiteam@192.185.39.252
|
||||||
|
|
||||||
# where to find the build script
|
# where to find the build script
|
||||||
script_uri=contrib/nightly/make_snapshot_tarball
|
script_uri=contrib/nightly/make_snapshot_tarball
|
||||||
|
|
||||||
@ -111,13 +114,23 @@ for branch in $branches; do
|
|||||||
fi
|
fi
|
||||||
echo "=== Posting tarball to open-mpi.org"
|
echo "=== Posting tarball to open-mpi.org"
|
||||||
# tell the web server to cleanup old nightly tarballs
|
# tell the web server to cleanup old nightly tarballs
|
||||||
ssh -p 2222 ompiteam@192.185.39.252 "git/ompi/contrib/build-server/remove-old.pl 7 public_html/software/hwloc/nightly/$branch"
|
ssh -p 2222 \
|
||||||
|
$output_ssh_target \
|
||||||
|
"git/ompi/contrib/build-server/remove-old.pl 7 public_html/software/hwloc/nightly/$branch"
|
||||||
# upload the new ones
|
# upload the new ones
|
||||||
scp -P 2222 $outputroot/$branch/hwloc-$latest_snapshot.tar.* ompiteam@192.185.39.252:public_html/software/hwloc/nightly/$branch/
|
scp -P 2222 \
|
||||||
scp -P 2222 $outputroot/$branch/latest_snapshot.txt ompiteam@192.185.39.252:public_html/software/hwloc/nightly/$branch/
|
$outputroot/$branch/hwloc-$latest_snapshot.tar.* \
|
||||||
|
$output_ssh_target:public_html/software/hwloc/nightly/$branch/
|
||||||
|
scp -P 2222 \
|
||||||
|
$outputroot/$branch/latest_snapshot.txt \
|
||||||
|
$output_ssh_target:public_html/software/hwloc/nightly/$branch/
|
||||||
# direct the web server to regenerate the checksums
|
# direct the web server to regenerate the checksums
|
||||||
ssh -p 2222 ompiteam@192.185.39.252 "cd public_html/software/hwloc/nightly/$branch && md5sum hwloc* > md5sums.txt"
|
ssh -p 2222 \
|
||||||
ssh -p 2222 ompiteam@192.185.39.252 "cd public_html/software/hwloc/nightly/$branch && sha1sum hwloc* > sha1sums.txt"
|
$output_ssh_target \
|
||||||
|
"cd public_html/software/hwloc/nightly/$branch && md5sum hwloc* > md5sums.txt"
|
||||||
|
ssh -p 2222 \
|
||||||
|
$output_ssh_target \
|
||||||
|
"cd public_html/software/hwloc/nightly/$branch && sha1sum hwloc* > sha1sums.txt"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Failed builds are not removed. But if a human forgets to come
|
# Failed builds are not removed. But if a human forgets to come
|
||||||
|
@ -18,6 +18,9 @@ master_raw_uri=https://raw.github.com/open-mpi/ompi
|
|||||||
# adjusted to match your site!
|
# adjusted to match your site!
|
||||||
outputroot=$HOME/openmpi/nightly
|
outputroot=$HOME/openmpi/nightly
|
||||||
|
|
||||||
|
# Target where to scp the final tarballs
|
||||||
|
output_ssh_target=ompiteam@192.185.39.252
|
||||||
|
|
||||||
# where to find the build script
|
# where to find the build script
|
||||||
script_uri=contrib/nightly/create_tarball.sh
|
script_uri=contrib/nightly/create_tarball.sh
|
||||||
|
|
||||||
@ -116,13 +119,23 @@ for branch in $branches; do
|
|||||||
fi
|
fi
|
||||||
echo "=== Posting tarball to open-mpi.org"
|
echo "=== Posting tarball to open-mpi.org"
|
||||||
# tell the web server to cleanup old nightly tarballs
|
# tell the web server to cleanup old nightly tarballs
|
||||||
ssh -p 2222 ompiteam@192.185.39.252 "git/ompi/contrib/build-server/remove-old.pl 7 public_html/nightly/$branch"
|
ssh -p 2222 \
|
||||||
|
$output_ssh_target \
|
||||||
|
"git/ompi/contrib/build-server/remove-old.pl 7 public_html/nightly/$branch"
|
||||||
# upload the new ones
|
# upload the new ones
|
||||||
scp -P 2222 $outputroot/$branch/openmpi-$latest_snapshot.tar.* ompiteam@192.185.39.252:public_html/nightly/$branch/
|
scp -P 2222 \
|
||||||
scp -P 2222 $outputroot/$branch/latest_snapshot.txt ompiteam@192.185.39.252:public_html/nightly/$branch/
|
$outputroot/$branch/openmpi-$latest_snapshot.tar.* \
|
||||||
|
$output_ssh_target:public_html/nightly/$branch/
|
||||||
|
scp -P 2222 \
|
||||||
|
$outputroot/$branch/latest_snapshot.txt \
|
||||||
|
$output_ssh_target:public_html/nightly/$branch/
|
||||||
# direct the web server to regenerate the checksums
|
# direct the web server to regenerate the checksums
|
||||||
ssh -p 2222 ompiteam@192.185.39.252 "cd public_html/nightly/$branch && md5sum openmpi* > md5sums.txt"
|
ssh -p 2222 \
|
||||||
ssh -p 2222 ompiteam@192.185.39.252 "cd public_html/nightly/$branch && sha1sum openmpi* > sha1sums.txt"
|
$output_ssh_target \
|
||||||
|
"cd public_html/nightly/$branch && md5sum openmpi* > md5sums.txt"
|
||||||
|
ssh -p 2222 \
|
||||||
|
$output_ssh_target \
|
||||||
|
"cd public_html/nightly/$branch && sha1sum openmpi* > sha1sums.txt"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Failed builds are not removed. But if a human forgets to come
|
# Failed builds are not removed. But if a human forgets to come
|
||||||
|
@ -19,6 +19,9 @@ release_raw_uri=https://raw.github.com/pmix/releases
|
|||||||
# where to put built tarballs
|
# where to put built tarballs
|
||||||
outputroot=$HOME/pmix/nightly
|
outputroot=$HOME/pmix/nightly
|
||||||
|
|
||||||
|
# Target where to scp the final tarballs
|
||||||
|
output_ssh_target=ompiteam@192.185.39.252
|
||||||
|
|
||||||
# where to find the build script
|
# where to find the build script
|
||||||
script_uri=contrib/nightly/create_tarball.sh
|
script_uri=contrib/nightly/create_tarball.sh
|
||||||
|
|
||||||
@ -121,13 +124,23 @@ for branch in $branches; do
|
|||||||
fi
|
fi
|
||||||
echo "=== Posting tarball to open-mpi.org"
|
echo "=== Posting tarball to open-mpi.org"
|
||||||
# tell the web server to cleanup old nightly tarballs
|
# tell the web server to cleanup old nightly tarballs
|
||||||
ssh -p 2222 ompiteam@192.185.39.252 "git/ompi/contrib/build-server/remove-old.pl 7 public_html/software/pmix/nightly/$branch"
|
ssh -p 2222 \
|
||||||
|
$output_ssh_target \
|
||||||
|
"git/ompi/contrib/build-server/remove-old.pl 7 public_html/software/pmix/nightly/$branch"
|
||||||
# upload the new ones
|
# upload the new ones
|
||||||
scp -P 2222 $outputroot/$branch/pmix-$latest_snapshot.tar.* ompiteam@192.185.39.252:public_html/software/pmix/nightly/$branch/
|
scp -P 2222 \
|
||||||
scp -P 2222 $outputroot/$branch/latest_snapshot.txt ompiteam@192.185.39.252:public_html/software/pmix/nightly/$branch/
|
$outputroot/$branch/pmix-$latest_snapshot.tar.* \
|
||||||
|
$output_ssh_target:public_html/software/pmix/nightly/$branch/
|
||||||
|
scp -P 2222 \
|
||||||
|
$outputroot/$branch/latest_snapshot.txt \
|
||||||
|
$output_ssh_target:public_html/software/pmix/nightly/$branch/
|
||||||
# direct the web server to regenerate the checksums
|
# direct the web server to regenerate the checksums
|
||||||
ssh -p 2222 ompiteam@192.185.39.252 "cd public_html/software/pmix/nightly/$branch && md5sum pmix* > md5sums.txt"
|
ssh -p 2222 \
|
||||||
ssh -p 2222 ompiteam@192.185.39.252 "cd public_html/software/pmix/nightly/$branch && sha1sum pmix* > sha1sums.txt"
|
$output_ssh_target \
|
||||||
|
"cd public_html/software/pmix/nightly/$branch && md5sum pmix* > md5sums.txt"
|
||||||
|
ssh -p 2222 \
|
||||||
|
$output_ssh_target \
|
||||||
|
"cd public_html/software/pmix/nightly/$branch && sha1sum pmix* > sha1sums.txt"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Failed builds are not removed. But if a human forgets to come
|
# Failed builds are not removed. But if a human forgets to come
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user