From commits-return-4232-archive-asf-public=cust-asf.ponee.io@bigtop.apache.org Mon Mar 4 16:27:34 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 81F39180627 for ; Mon, 4 Mar 2019 17:27:34 +0100 (CET) Received: (qmail 40319 invoked by uid 500); 4 Mar 2019 16:27:33 -0000 Mailing-List: contact commits-help@bigtop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bigtop-dev@bigtop.apache.org Delivered-To: mailing list commits@bigtop.apache.org Received: (qmail 40305 invoked by uid 99); 4 Mar 2019 16:27:33 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Mar 2019 16:27:33 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 14E868776A; Mon, 4 Mar 2019 16:27:33 +0000 (UTC) Date: Mon, 04 Mar 2019 16:27:32 +0000 To: "commits@bigtop.apache.org" Subject: [bigtop] branch master updated: BIGTOP-3181. Build as non-root for COMPONENT-pkg-ind (#488) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <155171685293.31612.147580393140897358@gitbox.apache.org> From: evansye@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: bigtop X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 9c0f81ae5b74decf53ff35644f22dc1d6d62e583 X-Git-Newrev: 82f63b6ab87e4e41a140ae4b30d7f2fced98459a X-Git-Rev: 82f63b6ab87e4e41a140ae4b30d7f2fced98459a X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. evansye pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/bigtop.git The following commit(s) were added to refs/heads/master by this push: new 82f63b6 BIGTOP-3181. Build as non-root for COMPONENT-pkg-ind (#488) 82f63b6 is described below commit 82f63b6ab87e4e41a140ae4b30d7f2fced98459a Author: Evans Ye AuthorDate: Tue Mar 5 00:27:28 2019 +0800 BIGTOP-3181. Build as non-root for COMPONENT-pkg-ind (#488) --- bigtop-ci/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bigtop-ci/build.sh b/bigtop-ci/build.sh index de5b4fb..3a5f250 100755 --- a/bigtop-ci/build.sh +++ b/bigtop-ci/build.sh @@ -78,9 +78,10 @@ trap "docker rm -f $CONTAINER_ID" EXIT # Copy bigtop repo into container docker cp $BIGTOP_HOME $CONTAINER_ID:/bigtop docker cp $BIGTOP_HOME/bigtop-ci/entrypoint.sh $CONTAINER_ID:/bigtop/entrypoint.sh +docker exec $CONTAINER_ID bash -c "chown -R jenkins:jenkins /bigtop" # Build -docker exec $CONTAINER_ID bash -c "cd /bigtop && ./entrypoint.sh $CONFIGURE_NEXUS $TARGET --info" +docker exec --user jenkins $CONTAINER_ID bash -c "cd /bigtop && ./entrypoint.sh $CONFIGURE_NEXUS $TARGET --info" RESULT=$? # save result