Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Webtools Releng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
webtools
Releng
Webtools Releng
Commits
eaa47b46
Commit
eaa47b46
authored
14 years ago
by
david_williams
Browse files
Options
Downloads
Patches
Plain Diff
add pack200 to promote script
parent
a2b87ed3
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
releng.control/promote.sh
+15
-5
15 additions, 5 deletions
releng.control/promote.sh
with
15 additions
and
5 deletions
releng.control/promote.sh
+
15
−
5
View file @
eaa47b46
...
...
@@ -4,8 +4,11 @@
#
function
usage
()
{
printf
"
\n\t
Usage: %s [-v] [-d] [-s] [-c] [-p] projectname "
$(
basename
$0
)
>
&2
printf
"
\n\t\t
%s
\n\n
"
"where <projectname> is wtp-R2.0-M, wtp-R3.0-I, wtp-R3.0-N, etc."
>
&2
printf
"
\n\t
Usage: %s [-v] [-d] [-s] [-c] [-z] [-p] projectname "
$(
basename
$0
)
>
&2
printf
"
\n\t\t
%s
\n\n
"
"where <projectname> (for -p) is wtp-R2.0-M, wtp-R3.0-I, wtp-R3.0-N, etc."
>
&2
printf
"
\n\t\t
%s
\n\n
"
"v: verbose, d: deleteOld, s: sendMail, c: doCopy, z: processArtifacts"
>
&2
printf
"
\n\t\t
%s
\n\n
"
"(processArtifacts can be very long running)"
>
&2
}
source
rsync-retry.sh
...
...
@@ -14,7 +17,8 @@ verboseFlag=
deleteOld
=
doCopy
=
projectname
=
while
getopts
'hvdcsp:'
OPTION
processArtifacts
=
while
getopts
'hvdcszp:'
OPTION
do
case
$OPTION
in
h
)
usage
...
...
@@ -28,6 +32,8 @@ do
;;
s
)
sendmail
=
1
;;
z
)
processArtifacts
=
1
;;
p
)
projectname
=
$OPTARG
;;
?
)
usage
...
...
@@ -148,11 +154,14 @@ echo "Drop directory: ${dropDirName}"
FROMDIR
=
${
mostRecentDir
}
/
${
dropDirName
}
if
[[
processArtifacts
]]
then
#run pack200 (and, recompute checksums) before literally promoting
repoDirLocation
=
$FROMDIR
/repository
if
[[
-d
"
${
repoDirLocation
}
"
]]
then
echo
"INFO: processing artifacts in code repo:
$repoDirLocation
"
;
${
RELENG_CONTROL
}
/runAntRunner.sh process-artifacts.xml
-DrepoDirLocation
=
"
${
repoDirLocation
}
"
else
echo
"WARNING: expected code repo directory does not exist:
$repoDirLocation
"
;
...
...
@@ -161,11 +170,12 @@ FROMDIR=${mostRecentDir}/${dropDirName}
repoDirLocation
=
$FROMDIR
/repositoryunittests
if
[[
-d
"
${
repoDirLocation
}
"
]]
then
echo
"INFO: calling processing artifacts in test repo:
$repoDirLocation
"
;
${
RELENG_CONTROL
}
/runAntRunner.sh process-artifacts.xml
-DrepoDirLocation
=
"
${
repoDirLocation
}
"
else
echo
"WARNING: expected
code
repo directory does not exist:
$repoDirLocation
"
;
echo
"WARNING: expected
test
repo directory does not exist:
$repoDirLocation
"
;
fi
fi
if
[
"patches"
==
$distribution
]
then
...
...
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