summaryrefslogtreecommitdiffstats
path: root/jenkins-builds
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-01-02 19:17:53 +0100
committerSven Gothel <[email protected]>2020-01-02 19:17:53 +0100
commitf053eaf81821f58ad15c81ebc0311026aff8e216 (patch)
treec7a0bdf5645ab85814b3e6df0fc49e81984213e6 /jenkins-builds
parent2e70d2028a58a84a19da0216b7a9575b1ebe051e (diff)
fix promote-latest-builds: prom_extract needs to set all files to 0644 and folders to 0755
The 'missing' javadoc existed, but contained our restricted default permissions w/o access to others or world. Setting all 7z extracted artifacts to 0644 (files) and 0755 (folders), potentially removing execution permission on files - but that should be OK.
Diffstat (limited to 'jenkins-builds')
-rwxr-xr-xjenkins-builds/funcs_promotion.sh3
-rwxr-xr-xjenkins-builds/promote-latest-builds.sh8
2 files changed, 2 insertions, 9 deletions
diff --git a/jenkins-builds/funcs_promotion.sh b/jenkins-builds/funcs_promotion.sh
index 5ef9c84..22238e1 100755
--- a/jenkins-builds/funcs_promotion.sh
+++ b/jenkins-builds/funcs_promotion.sh
@@ -1,6 +1,5 @@
#! /bin/bash
-
function prom_setup() {
local ldest=$1
shift
@@ -464,6 +463,8 @@ function prom_extract() {
echo OK 7z file $zfile $*
if [ ! -z "$*" ] ; then
chmod 755 $*
+ find $* -type d -exec chmod 0755 \{\} \;
+ find $* -type f -exec chmod 0644 \{\} \;
fi
fi
}
diff --git a/jenkins-builds/promote-latest-builds.sh b/jenkins-builds/promote-latest-builds.sh
index bbe65a9..68ef63b 100755
--- a/jenkins-builds/promote-latest-builds.sh
+++ b/jenkins-builds/promote-latest-builds.sh
@@ -85,16 +85,8 @@ function promote-latest-builds() {
cp -a $gluegenmaster/javadoc.7z $dest/archive/gluegen-javadoc.7z
cd $dest/javadoc
echo "INFO: gluegen master gluegen-javadoc 7z"
- # FIXME
- ls -la ../archive/gluegen-javadoc.7z
prom_extract ../archive/gluegen-javadoc.7z gluegen
- # FIXME
- pwd
- ls -la
cd $rootdir
- # FIXME
- pwd
- ls -la
joalslave=`prom_lslatest joal-b`
bjoalslave=`prom_buildnumber_2 $joalslave`