-
Notifications
You must be signed in to change notification settings - Fork 14
/
do_test
executable file
·19 lines (16 loc) · 1.01 KB
/
do_test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# mirror_git.py
# Run each test twice, some tests toggle bad to good each time
for dir in $(ls | sort -R; ls | sort -R); do
echo "============================="
echo "======== $dir ==============="
echo "============================="
[ -f $dir/build.xml ] && (cd $dir && rm -rf .git/refs/tags/stale && git pull-a && sleep 3 && ant && sleep 2 && git push && sleep 5 && git push cache && sleep 7 && git push bare)
done
# Run tests again that are harmed by other tests
for dir in JENKINS-20941 JENKINS-20941-base JENKINS-20941-https-simple JENKINS-21248-a JENKINS-29796-develop JENKINS-29796-production JENKINS-29977 JENKINS-32174 JENKINS-32174-without-slashes; do
echo "============================="
echo "======== $dir ==============="
echo "============================="
[ -f $dir/build.xml ] && (cd $dir && rm -rf .git/refs/tags/stale && git pull-a && sleep 3 && ant && sleep 2 && git push && sleep 5 && git push cache && sleep 7 && git push bare)
done