Code Review
/
integration
/
test.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
4a71490
)
Skip ELK update for jobs running in sandbox
16/76316/2
author
Luis Gomez
<ecelgp@gmail.com>
Thu, 20 Sep 2018 20:46:20 +0000
(13:46 -0700)
committer
Luis Gomez
<ecelgp@gmail.com>
Thu, 20 Sep 2018 20:56:38 +0000
(13:56 -0700)
Change-Id: If79512c3045ca6561691e4576cdc9a93966de3c6
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
csit/scripts/push_test_data.py
patch
|
blob
|
history
diff --git
a/csit/scripts/push_test_data.py
b/csit/scripts/push_test_data.py
index 9efaa213c2b4da7ec739a95bbc8db8cd4fbaceb7..976b2277e6f5388b923d02ff0dbe6f96abf079bd 100755
(executable)
--- a/
csit/scripts/push_test_data.py
+++ b/
csit/scripts/push_test_data.py
@@
-94,8
+94,12
@@
BODY = data_gen.generate()
print(json.dumps(BODY, indent=4))
-# Try to send request to ELK DB.
+# Skip ELK update if it comes from sandbox.
+if BODY['jenkins-silo'] == 'sandbox':
+ print('silo is sandbox, ELK update is skipped')
+ sys.exit()
+# Try to send request to ELK DB.
try:
index = '{}-{}'.format(BODY['project'],
BODY['subject'])