Skip to content

Commit 9cbe6af

Browse files
author
Ralph Castain
committed
Move upload cmds from outside an "if master" test so all versions get uploaded
1 parent e2d0cfe commit 9cbe6af

File tree

3 files changed

+30
-26
lines changed

3 files changed

+30
-26
lines changed

contrib/build-server/hwloc-nightly-tarball.sh

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,19 +106,20 @@ for branch in $branches; do
106106
test "$branch" = "master"; then
107107
echo "=== Saving output for a Coverity run"
108108
echo "$outputroot/$branch/hwloc-$latest_snapshot.tar.bz2" >> $pending_coverity
109-
echo "=== Posting tarball to open-mpi.org"
110-
# tell the web server to cleanup old nightly tarballs
111-
ssh -p 2222 [email protected] "git/ompi/contrib/build-server/remove-old.pl 7 public_html/software/hwloc/nightly/$branch"
112-
# upload the new ones
113-
scp -P 2222 $outputroot/$branch/hwloc-$latest_snapshot.tar.* [email protected]:public_html/software/hwloc/nightly/$branch/
114-
scp -P 2222 $outputroot/$branch/latest_snapshot.txt [email protected]:public_html/software/hwloc/nightly/$branch/
115-
# direct the web server to regenerate the checksums
116-
ssh -p 2222 [email protected] "cd public_html/software/hwloc/nightly/$branch && md5sum hwloc* > md5sums.txt"
117-
ssh -p 2222 [email protected] "cd public_html/software/hwloc/nightly/$branch && sha1sum hwloc* > sha1sums.txt"
118109
else
119110
echo "=== NOT saving output for a Coverity run"
120111
fi
121112

113+
echo "=== Posting tarball to open-mpi.org"
114+
# tell the web server to cleanup old nightly tarballs
115+
ssh -p 2222 [email protected] "git/ompi/contrib/build-server/remove-old.pl 7 public_html/software/hwloc/nightly/$branch"
116+
# upload the new ones
117+
scp -P 2222 $outputroot/$branch/hwloc-$latest_snapshot.tar.* [email protected]:public_html/software/hwloc/nightly/$branch/
118+
scp -P 2222 $outputroot/$branch/latest_snapshot.txt [email protected]:public_html/software/hwloc/nightly/$branch/
119+
# direct the web server to regenerate the checksums
120+
ssh -p 2222 [email protected] "cd public_html/software/hwloc/nightly/$branch && md5sum hwloc* > md5sums.txt"
121+
ssh -p 2222 [email protected] "cd public_html/software/hwloc/nightly/$branch && sha1sum hwloc* > sha1sums.txt"
122+
122123
# Failed builds are not removed. But if a human forgets to come
123124
# in here and clean up the old failed builds, we can accumulate
124125
# many over time. So remove any old failed builds that are over

contrib/build-server/openmpi-nightly-tarball.sh

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,20 @@ for branch in $branches; do
117117
test "$branch" = "master"; then
118118
echo "=== Saving output for a Coverity run"
119119
echo "$outputroot/$branch/openmpi-$latest_snapshot.tar.bz2" >> $pending_coverity
120-
# tell the web server to cleanup old nightly tarballs
121-
ssh -p 2222 [email protected] "git/ompi/contrib/build-server/remove-old.pl 7 public_html/nightly/$branch"
122-
# upload the new ones
123-
scp -P 2222 $outputroot/$branch/openmpi-$latest_snapshot.tar.* [email protected]:public_html/nightly/$branch/
124-
scp -P 2222 $outputroot/$branch/latest_snapshot.txt [email protected]:public_html/nightly/$branch/
125-
# direct the web server to regenerate the checksums
126-
ssh -p 2222 [email protected] "cd public_html/nightly/$branch && md5sum openmpi* > md5sums.txt"
127-
ssh -p 2222 [email protected] "cd public_html/nightly/$branch && sha1sum openmpi* > sha1sums.txt"
128120
else
129121
echo "=== NOT saving output for a Coverity run"
130122
fi
131123

124+
echo "=== Posting tarball to open-mpi.org"
125+
# tell the web server to cleanup old nightly tarballs
126+
ssh -p 2222 [email protected] "git/ompi/contrib/build-server/remove-old.pl 7 public_html/nightly/$branch"
127+
# upload the new ones
128+
scp -P 2222 $outputroot/$branch/openmpi-$latest_snapshot.tar.* [email protected]:public_html/nightly/$branch/
129+
scp -P 2222 $outputroot/$branch/latest_snapshot.txt [email protected]:public_html/nightly/$branch/
130+
# direct the web server to regenerate the checksums
131+
ssh -p 2222 [email protected] "cd public_html/nightly/$branch && md5sum openmpi* > md5sums.txt"
132+
ssh -p 2222 [email protected] "cd public_html/nightly/$branch && sha1sum openmpi* > sha1sums.txt"
133+
132134
# Failed builds are not removed. But if a human forgets to come
133135
# in here and clean up the old failed builds, we can accumulate
134136
# many over time. So remove any old failed builds that are over

contrib/build-server/pmix-nightly-tarball.sh

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -116,19 +116,20 @@ for branch in $branches; do
116116
test "$branch" = "master"; then
117117
echo "=== Saving output for a Coverity run"
118118
echo "$outputroot/$branch/pmix-$latest_snapshot.tar.bz2" >> $pending_coverity
119-
echo "=== Posting tarball to open-mpi.org"
120-
# tell the web server to cleanup old nightly tarballs
121-
ssh -p 2222 [email protected] "git/ompi/contrib/build-server/remove-old.pl 7 public_html/software/pmix/nightly/$branch"
122-
# upload the new ones
123-
scp -P 2222 $outputroot/$branch/pmix-$latest_snapshot.tar.* [email protected]:public_html/software/pmix/nightly/$branch/
124-
scp -P 2222 $outputroot/$branch/latest_snapshot.txt [email protected]:public_html/software/pmix/nightly/$branch/
125-
# direct the web server to regenerate the checksums
126-
ssh -p 2222 [email protected] "cd public_html/software/pmix/nightly/$branch && md5sum pmix* > md5sums.txt"
127-
ssh -p 2222 [email protected] "cd public_html/software/pmix/nightly/$branch && sha1sum pmix* > sha1sums.txt"
128119
else
129120
echo "=== NOT saving output for a Coverity run"
130121
fi
131122

123+
echo "=== Posting tarball to open-mpi.org"
124+
# tell the web server to cleanup old nightly tarballs
125+
ssh -p 2222 [email protected] "git/ompi/contrib/build-server/remove-old.pl 7 public_html/software/pmix/nightly/$branch"
126+
# upload the new ones
127+
scp -P 2222 $outputroot/$branch/pmix-$latest_snapshot.tar.* [email protected]:public_html/software/pmix/nightly/$branch/
128+
scp -P 2222 $outputroot/$branch/latest_snapshot.txt [email protected]:public_html/software/pmix/nightly/$branch/
129+
# direct the web server to regenerate the checksums
130+
ssh -p 2222 [email protected] "cd public_html/software/pmix/nightly/$branch && md5sum pmix* > md5sums.txt"
131+
ssh -p 2222 [email protected] "cd public_html/software/pmix/nightly/$branch && sha1sum pmix* > sha1sums.txt"
132+
132133
# Failed builds are not removed. But if a human forgets to come
133134
# in here and clean up the old failed builds, we can accumulate
134135
# many over time. So remove any old failed bbuilds that are over

0 commit comments

Comments
 (0)