Skip to content
Snippets Groups Projects
Commit eaa47b46 authored by david_williams's avatar david_williams
Browse files

add pack200 to promote script

parent a2b87ed3
No related branches found
No related tags found
No related merge requests found
...@@ -4,8 +4,11 @@ ...@@ -4,8 +4,11 @@
# #
function usage() { function usage() {
printf "\n\tUsage: %s [-v] [-d] [-s] [-c] [-p] projectname " $(basename $0) >&2 printf "\n\tUsage: %s [-v] [-d] [-s] [-c] [-z] [-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\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 source rsync-retry.sh
...@@ -14,7 +17,8 @@ verboseFlag= ...@@ -14,7 +17,8 @@ verboseFlag=
deleteOld= deleteOld=
doCopy= doCopy=
projectname= projectname=
while getopts 'hvdcsp:' OPTION processArtifacts=
while getopts 'hvdcszp:' OPTION
do do
case $OPTION in case $OPTION in
h) usage h) usage
...@@ -28,6 +32,8 @@ do ...@@ -28,6 +32,8 @@ do
;; ;;
s) sendmail=1 s) sendmail=1
;; ;;
z) processArtifacts=1
;;
p) projectname=$OPTARG p) projectname=$OPTARG
;; ;;
?) usage ?) usage
...@@ -148,11 +154,14 @@ echo "Drop directory: ${dropDirName}" ...@@ -148,11 +154,14 @@ echo "Drop directory: ${dropDirName}"
FROMDIR=${mostRecentDir}/${dropDirName} FROMDIR=${mostRecentDir}/${dropDirName}
if [[ processArtifacts ]]
then
#run pack200 (and, recompute checksums) before literally promoting #run pack200 (and, recompute checksums) before literally promoting
repoDirLocation=$FROMDIR/repository repoDirLocation=$FROMDIR/repository
if [[ -d "${repoDirLocation}" ]] if [[ -d "${repoDirLocation}" ]]
then then
echo "INFO: processing artifacts in code repo: $repoDirLocation";
${RELENG_CONTROL}/runAntRunner.sh process-artifacts.xml -DrepoDirLocation="${repoDirLocation}" ${RELENG_CONTROL}/runAntRunner.sh process-artifacts.xml -DrepoDirLocation="${repoDirLocation}"
else else
echo "WARNING: expected code repo directory does not exist: $repoDirLocation"; echo "WARNING: expected code repo directory does not exist: $repoDirLocation";
...@@ -161,11 +170,12 @@ FROMDIR=${mostRecentDir}/${dropDirName} ...@@ -161,11 +170,12 @@ FROMDIR=${mostRecentDir}/${dropDirName}
repoDirLocation=$FROMDIR/repositoryunittests repoDirLocation=$FROMDIR/repositoryunittests
if [[ -d "${repoDirLocation}" ]] if [[ -d "${repoDirLocation}" ]]
then then
echo "INFO: calling processing artifacts in test repo: $repoDirLocation";
${RELENG_CONTROL}/runAntRunner.sh process-artifacts.xml -DrepoDirLocation="${repoDirLocation}" ${RELENG_CONTROL}/runAntRunner.sh process-artifacts.xml -DrepoDirLocation="${repoDirLocation}"
else else
echo "WARNING: expected code repo directory does not exist: $repoDirLocation"; echo "WARNING: expected test repo directory does not exist: $repoDirLocation";
fi fi
fi
if [ "patches" == $distribution ] if [ "patches" == $distribution ]
then then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment