summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthewLi <matthew.lijun@huawei.com>2016-09-23 02:38:57 -0400
committerMatthewLi <matthew.lijun@huawei.com>2016-09-23 02:42:10 -0400
commit5543d505ba3fa42927df5816ee42cefe8212934b (patch)
treefebfba2806476c7d4c53b1b59ed4e9962a7bf496
parentffb46f565212179212c1b23484e050078d6d82ad (diff)
dovetail fix: set the parameter CI_DEBUG true to print logs
JIRA: DOVETAIL-14 CI_DEBUG is used in dovetail tool to decide if print logs or not, to set the CI_DEBUG true to print logs in jenkins, which makes it easy to debug. Change-Id: I487c9f53034212ca02a189362522889f09fe1ecd Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
-rw-r--r--jjb/dovetail/dovetail-ci-jobs.yml2
-rwxr-xr-xjjb/dovetail/dovetail-run.sh3
2 files changed, 3 insertions, 2 deletions
diff --git a/jjb/dovetail/dovetail-ci-jobs.yml b/jjb/dovetail/dovetail-ci-jobs.yml
index 015c416fc..91362ef3a 100644
--- a/jjb/dovetail/dovetail-ci-jobs.yml
+++ b/jjb/dovetail/dovetail-ci-jobs.yml
@@ -134,7 +134,7 @@
description: 'Tag to pull docker image'
- string:
name: CI_DEBUG
- default: 'false'
+ default: 'true'
description: "Show debug output information"
scm:
diff --git a/jjb/dovetail/dovetail-run.sh b/jjb/dovetail/dovetail-run.sh
index c0176506f..2c85e4602 100755
--- a/jjb/dovetail/dovetail-run.sh
+++ b/jjb/dovetail/dovetail-run.sh
@@ -33,7 +33,8 @@ if ! sudo iptables -C FORWARD -j RETURN 2> ${redirect} || ! sudo iptables -L FOR
fi
opts="--privileged=true --rm"
-envs="-v /var/run/docker.sock:/var/run/docker.sock"
+envs="-e CI_DEBUG=${CI_DEBUG} \
+ -v /var/run/docker.sock:/var/run/docker.sock"
# Pull the image with correct tag
echo "Dovetail: Pulling image opnfv/dovetail:${DOCKER_TAG}"