Skip to content

Commit 16cfbf9

Browse files
author
Ralph Castain
committed
Only post tarballs if something changed
1 parent 9cbe6af commit 16cfbf9

File tree

3 files changed

+48
-48
lines changed

3 files changed

+48
-48
lines changed

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -102,24 +102,24 @@ for branch in $branches; do
102102
# master (for now).
103103
latest_snapshot=`cat $outputroot/$branch/latest_snapshot.txt`
104104
echo "=== Latest snapshot: $latest_snapshot"
105-
if test "$prev_snapshot" != "$latest_snapshot" && \
106-
test "$branch" = "master"; then
107-
echo "=== Saving output for a Coverity run"
108-
echo "$outputroot/$branch/hwloc-$latest_snapshot.tar.bz2" >> $pending_coverity
109-
else
110-
echo "=== NOT saving output for a Coverity run"
105+
if test "$prev_snapshot" != "$latest_snapshot"; then
106+
if test "$branch" = "master"; then
107+
echo "=== Saving output for a Coverity run"
108+
echo "$outputroot/$branch/hwloc-$latest_snapshot.tar.bz2" >> $pending_coverity
109+
else
110+
echo "=== NOT saving output for a Coverity run"
111+
fi
112+
echo "=== Posting tarball to open-mpi.org"
113+
# tell the web server to cleanup old nightly tarballs
114+
ssh -p 2222 [email protected] "git/ompi/contrib/build-server/remove-old.pl 7 public_html/software/hwloc/nightly/$branch"
115+
# upload the new ones
116+
scp -P 2222 $outputroot/$branch/hwloc-$latest_snapshot.tar.* [email protected]:public_html/software/hwloc/nightly/$branch/
117+
scp -P 2222 $outputroot/$branch/latest_snapshot.txt [email protected]:public_html/software/hwloc/nightly/$branch/
118+
# direct the web server to regenerate the checksums
119+
ssh -p 2222 [email protected] "cd public_html/software/hwloc/nightly/$branch && md5sum hwloc* > md5sums.txt"
120+
ssh -p 2222 [email protected] "cd public_html/software/hwloc/nightly/$branch && sha1sum hwloc* > sha1sums.txt"
111121
fi
112122

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-
123123
# Failed builds are not removed. But if a human forgets to come
124124
# in here and clean up the old failed builds, we can accumulate
125125
# many over time. So remove any old failed builds that are over

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -113,24 +113,24 @@ for branch in $branches; do
113113
# master (for now).
114114
latest_snapshot=`cat $outputroot/$branch/latest_snapshot.txt`
115115
echo "=== Latest snapshot: $latest_snapshot"
116-
if test "$prev_snapshot" != "$latest_snapshot" && \
117-
test "$branch" = "master"; then
118-
echo "=== Saving output for a Coverity run"
119-
echo "$outputroot/$branch/openmpi-$latest_snapshot.tar.bz2" >> $pending_coverity
120-
else
121-
echo "=== NOT saving output for a Coverity run"
116+
if test "$prev_snapshot" != "$latest_snapshot"; then
117+
if test "$branch" = "master"; then
118+
echo "=== Saving output for a Coverity run"
119+
echo "$outputroot/$branch/openmpi-$latest_snapshot.tar.bz2" >> $pending_coverity
120+
else
121+
echo "=== NOT saving output for a Coverity run"
122+
fi
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/nightly/$branch"
126+
# upload the new ones
127+
scp -P 2222 $outputroot/$branch/openmpi-$latest_snapshot.tar.* [email protected]:public_html/nightly/$branch/
128+
scp -P 2222 $outputroot/$branch/latest_snapshot.txt [email protected]:public_html/nightly/$branch/
129+
# direct the web server to regenerate the checksums
130+
ssh -p 2222 [email protected] "cd public_html/nightly/$branch && md5sum openmpi* > md5sums.txt"
131+
ssh -p 2222 [email protected] "cd public_html/nightly/$branch && sha1sum openmpi* > sha1sums.txt"
122132
fi
123133

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-
134134
# Failed builds are not removed. But if a human forgets to come
135135
# in here and clean up the old failed builds, we can accumulate
136136
# many over time. So remove any old failed builds that are over

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -112,24 +112,24 @@ for branch in $branches; do
112112
# master (for now).
113113
latest_snapshot=`cat $outputroot/$branch/latest_snapshot.txt`
114114
echo "=== Latest snapshot: $latest_snapshot"
115-
if test "$prev_snapshot" != "$latest_snapshot" && \
116-
test "$branch" = "master"; then
117-
echo "=== Saving output for a Coverity run"
118-
echo "$outputroot/$branch/pmix-$latest_snapshot.tar.bz2" >> $pending_coverity
119-
else
120-
echo "=== NOT saving output for a Coverity run"
115+
if test "$prev_snapshot" != "$latest_snapshot"; then
116+
if test "$branch" = "master"; then
117+
echo "=== Saving output for a Coverity run"
118+
echo "$outputroot/$branch/pmix-$latest_snapshot.tar.bz2" >> $pending_coverity
119+
else
120+
echo "=== NOT saving output for a Coverity run"
121+
fi
122+
echo "=== Posting tarball to open-mpi.org"
123+
# tell the web server to cleanup old nightly tarballs
124+
ssh -p 2222 [email protected] "git/ompi/contrib/build-server/remove-old.pl 7 public_html/software/pmix/nightly/$branch"
125+
# upload the new ones
126+
scp -P 2222 $outputroot/$branch/pmix-$latest_snapshot.tar.* [email protected]:public_html/software/pmix/nightly/$branch/
127+
scp -P 2222 $outputroot/$branch/latest_snapshot.txt [email protected]:public_html/software/pmix/nightly/$branch/
128+
# direct the web server to regenerate the checksums
129+
ssh -p 2222 [email protected] "cd public_html/software/pmix/nightly/$branch && md5sum pmix* > md5sums.txt"
130+
ssh -p 2222 [email protected] "cd public_html/software/pmix/nightly/$branch && sha1sum pmix* > sha1sums.txt"
121131
fi
122132

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-
133133
# Failed builds are not removed. But if a human forgets to come
134134
# in here and clean up the old failed builds, we can accumulate
135135
# many over time. So remove any old failed bbuilds that are over

0 commit comments

Comments
 (0)