Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
henry
Tor Browser
Commits
e7fcf4a4
Unverified
Commit
e7fcf4a4
authored
3 years ago
by
boklm
Browse files
Options
Downloads
Patches
Plain Diff
Bug 40021: Archive old nightly builds on tb-build-01
parent
308a0861
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/tb-build-01-start-nightly-build
+32
-1
32 additions, 1 deletion
tools/tb-build-01-start-nightly-build
with
32 additions
and
1 deletion
tools/tb-build-01-start-nightly-build
+
32
−
1
View file @
e7fcf4a4
#!/bin/bash
set
-e
today_version
=
$(
date
'+tbb-nightly.%Y.%m.%d'
)
cd
/home/tb-builder/tor-browser-bundle-testsuite
export
RBM_NO_DEBUG
=
1
./tbb-testsuite
--config
=
tb-build-01.torproject.org
"
$@
"
/home/tb-builder/tor-browser-bundle-testsuite/clones/tor-browser-build/tools/prune-old-builds
--days
1
--weeks
0
--months
0 ~/nightly-builds/tor-browser-builds
# Archive today's build
archive_dir
=
~/tor-browser-builds-archive/
"
$today_version
"
if
!
test
-d
"
$archive_dir
"
then
mkdir
-p
"
$archive_dir
"
for
dir
in
~/nightly-builds/tor-browser-builds/
"
$today_version
"
/
*
do
test
-d
"
$dir
"
||
continue
dname
=
$archive_dir
/
$(
basename
"
$dir
"
)
mkdir
-p
"
$dname
"
test
-d
"
$dir
/logs"
&&
cp
-a
"
$dir
/logs"
"
$dname
"
find
"
$dir
"
-maxdepth
1
\(
\
-name
'*.txt'
\
-o
-name
'*.asc'
\
-o
-name
'torbrowser-install-*_en-US.exe'
\
-o
-name
'TorBrowser-*_en-US.dmg'
\
-o
-name
'tor-browser-linux*_en-US.tar.xz'
\
-o
-name
'*-multi-qa.apk'
\
\)
\
-a
-execdir
cp
-a
{}
"
$dname
"
\;
done
/home/tb-builder/tor-browser-bundle-testsuite/clones/tor-browser-build/tools/prune-old-builds
--days
100
--weeks
30
--months
12 ~/tor-browser-builds-archive
fi
# Only clean previous builds if we use more than 20GB
builds_size
=
$(
du
-s
~/nightly-builds/tor-browser-builds |
cut
-f
1
)
test
"
$builds_size
"
-gt
20000000
&&
\
/home/tb-builder/tor-browser-bundle-testsuite/clones/tor-browser-build/tools/prune-old-builds
--days
1
--weeks
0
--months
0 ~/nightly-builds/tor-browser-builds
# sleep for 5m to give time to previous rsync to finish
sleep
5m
/home/tb-builder/tor-browser-bundle-testsuite/tools/rsync-to-tbb-nightlies-master
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment