summaryrefslogtreecommitdiffstats
path: root/jenkins-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'jenkins-scripts')
-rwxr-xr-xjenkins-scripts/create_jenkins_user.sh6
-rwxr-xr-xjenkins-scripts/docker.sh15
-rwxr-xr-xjenkins-scripts/system_type.sh1
3 files changed, 22 insertions, 0 deletions
diff --git a/jenkins-scripts/create_jenkins_user.sh b/jenkins-scripts/create_jenkins_user.sh
index 86a5c92d0..10e47091c 100755
--- a/jenkins-scripts/create_jenkins_user.sh
+++ b/jenkins-scripts/create_jenkins_user.sh
@@ -23,6 +23,12 @@ if [ "$?" == '0' ]
then
# Add jenkins user to docker group
usermod -a -G docker jenkins
+
+ # If /data exists it needs to be owned by jenkins
+ if [ -d /data ]
+ then
+ chown jenkins:jenkins /data
+ fi
fi
# Check if mock group exists
diff --git a/jenkins-scripts/docker.sh b/jenkins-scripts/docker.sh
new file mode 100755
index 000000000..e6b06a2ba
--- /dev/null
+++ b/jenkins-scripts/docker.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
+##############################################################################
+# Copyright (c) 2016 The Linux Foundation and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+##############################################################################
+
+# INT-216 add write permission to /data
+mkdir -p /data
+
+# vim: sw=2 ts=2 sts=2 et :
diff --git a/jenkins-scripts/system_type.sh b/jenkins-scripts/system_type.sh
index 9aeea20d2..1482a20fe 100755
--- a/jenkins-scripts/system_type.sh
+++ b/jenkins-scripts/system_type.sh
@@ -15,6 +15,7 @@ SYSTEM_TYPE=''
IFS=','
for i in "basebuild,basebuild" \
+ "docker,docker" \
"centos,centos" \
"trusty,trusty" \
"xenial,xenial"