diff options
author | Sven Gothel <[email protected]> | 2011-09-14 00:46:51 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-14 00:46:51 +0200 |
commit | 4f50f9a676e4bb2ff6aba0bd1b5ba6d8a84cac4f (patch) | |
tree | 1c154e8334c10ea9927b6225f4a558019f2d0a2b /jenkins-builds/funcs_promotion.sh | |
parent | 17d64e76cc6b1f6250445b815a94d18d1632731d (diff) |
Fix atomic jar copy; Add integrity check on atomic jars
Diffstat (limited to 'jenkins-builds/funcs_promotion.sh')
-rwxr-xr-x | jenkins-builds/funcs_promotion.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jenkins-builds/funcs_promotion.sh b/jenkins-builds/funcs_promotion.sh index cd3d6cd..3e8f810 100755 --- a/jenkins-builds/funcs_promotion.sh +++ b/jenkins-builds/funcs_promotion.sh @@ -113,7 +113,7 @@ function prom_promote_files() { local zfile=`find archive/$i -name $module\*$i.7z` local zfolder=tmp/`basename $zfile .7z` for sub in $submodules ; do - jars=`find $zfolder/jar -maxdepth 1 -name $sub\*$i.jar` + local jars=`find $zfolder/jar -maxdepth 1 -name $sub\*$i.jar` if [ -z "$jars" ] ; then echo "ERROR: No platform JAR file for module $module, sub $sub, platform $i, sdir $sourcedir" exit 1 @@ -122,7 +122,7 @@ function prom_promote_files() { cp -av $j ./jar/ done if [ -e $zfolder/jar/atomic ] ; then - jars=`find $zfolder/jar/atomic -maxdepth 1 -name $sub\*$i.jar` + local jars=`find $zfolder/jar/atomic -maxdepth 1 -name $sub\*$i.jar` if [ -z "$jars" ] ; then echo "ERROR: No platform JAR file (atomic) for module $module, sub $sub, platform $i, sdir $sourcedir" exit 1 @@ -144,7 +144,7 @@ function prom_promote_files() { exit 1 fi if [ -e $zfolder/jar/atomic ] ; then - jars=`find $zfolder/jar/atomic -maxdepth 1 -name $sub\*$masterpick.jar` + local jars=`find $zfolder/jar/atomic -maxdepth 1 -name $sub\*$masterpick.jar` if [ -z "$jars" ] ; then echo "ERROR: No platform JAR file (atomic) for module $module, sub $sub, platform $i, sdir $sourcedir" exit 1 @@ -156,7 +156,7 @@ function prom_promote_files() { exit 1 fi for j in $jars ; do - cp -av $j ./jar/atomic/ + cp -av $j ./jar/ done if [ -e $zfolder/jar/atomic ] ; then local jars=`find $zfolder/jar/atomic -maxdepth 1 -name $sub\*.jar` |