diff options
author | xudan <xudan16@huawei.com> | 2017-03-28 06:50:05 +0000 |
---|---|---|
committer | xudan <xudan16@huawei.com> | 2017-03-30 02:42:17 +0000 |
commit | 0d1e35bfb9069c701dbf24c3daaa618bc3ad108b (patch) | |
tree | 7e9648ea881baeae9905a5da213a3d6e0fc3aae4 /dovetail/container.py | |
parent | e0f4b3a6f279e8e3f4bc05307d60d6983cc60735 (diff) |
dovetail tool: set a unique build_tag for each DoveTail test
JIRA: DOVETAIL-379
1. create a uuid for each test, and set build_tag=daily-master-<uuid>
2. the reason it starts with "daily_master" is that it's the requirement of
functest when push data to DB.
Change-Id: I9a59d5695a9f0d83bf4330379f1949a2a04f876c
Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'dovetail/container.py')
-rw-r--r-- | dovetail/container.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dovetail/container.py b/dovetail/container.py index 878b21cb..89b732bb 100644 --- a/dovetail/container.py +++ b/dovetail/container.py @@ -62,8 +62,7 @@ class Container(object): ins_type = " -e INSTALLER_TYPE=vendor-specific" scenario = " -e DEPLOY_SCENARIO=default" node = " -e NODE_NAME=master" - tag = " -e BUILD_TAG=daily-master-001" - envs = "%s %s %s %s" % (ins_type, scenario, node, tag) + envs = "%s %s %s" % (ins_type, scenario, node) dovetail_config = dt_cfg.dovetail_config if dovetail_config['report_dest'].startswith("http"): @@ -107,8 +106,10 @@ class Container(object): if not openrc: return None - # This is used for showing the debug logs of the upstream projects + # CI_DEBUG is used for showing the debug logs of the upstream projects + # BUILD_TAG is the unique id for this test envs = ' -e CI_DEBUG=true' + envs = envs + ' -e BUILD_TAG=%s' % dovetail_config['build_tag'] config = "" if type.lower() == "functest": |