aboutsummaryrefslogtreecommitdiff
path: root/bigdata-bigtop-deb
diff options
context:
space:
mode:
authorGuodong Xu <guodong.xu@linaro.org>2019-09-10 14:11:06 +0800
committerFathi Boudra <fathi.boudra@linaro.org>2019-09-10 08:11:28 +0000
commitd6a7e4cb7f1871758eab5ae8c314619c6ade32b1 (patch)
tree8133f68f6ca7b4aa2ec7a60926432412a6d4949d /bigdata-bigtop-deb
parent565fe327e124aa5f8adee271029789152cf3a6c6 (diff)
bigtop: builders.sh: modify folders write permission
Some folders are created by docker container at 'jenkins' user, and their permission doesn't allow them to be deleted by other user. So, they cannot be removed once we exited the container. In order to allow CI jobs to run repetitively, these folders must be removed. This patch adds write permission to these folders. So, next time when CI build runs, builders.sh can remove them. Perviously 'sudo' is added to forcely 'rm' such folders. However 'sudo' is not allowed in bare-metal machines like which bigtop building is using. So, deleted 'sudo'. Signed-off-by: Guodong Xu <guodong.xu@linaro.org> Change-Id: I2d47962a31c7e3e3f5f8c59b2d2c645306303fcc
Diffstat (limited to 'bigdata-bigtop-deb')
-rwxr-xr-xbigdata-bigtop-deb/builders.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bigdata-bigtop-deb/builders.sh b/bigdata-bigtop-deb/builders.sh
index 2977c78c1a..13711f438d 100755
--- a/bigdata-bigtop-deb/builders.sh
+++ b/bigdata-bigtop-deb/builders.sh
@@ -6,7 +6,7 @@ set -ex
export CPU_CORES=$(getconf _NPROCESSORS_ONLN)
# get source
-sudo rm -rf bigtop-trunk
+rm -rf bigtop-trunk
git clone --depth 1 --branch working-tar-gz-packaging https://git.linaro.org/leg/bigdata/bigtop-trunk.git
# Before starting the container, give other users `w` access to `bigtop`
@@ -37,7 +37,7 @@ cd bigtop-trunk
# - bigtop.sh sets environment variables such as: JAVA_HOME, MAVEN_HOME, ANT_HOME, GRADLE_HOME, etc.
docker run -it --rm -u jenkins --workdir /ws -v ${PWD}:/ws \
- bigtop/slaves:1.4.0-debian-9-aarch64 bash -l -c '. /etc/profile.d/bigtop.sh; ./gradlew deb repo'
+ bigtop/slaves:1.4.0-debian-9-aarch64 bash -l -c '. /etc/profile.d/bigtop.sh; ./gradlew deb repo; chmod -R a+w output build .gradle dl;'
# cleanup
#docker prune -fa