Check whether this repo publish event is from build check project at the
beginning. If not, exit directly.
Change-Id: I9c5973a3b426f294ac7697e6ea76d8b4a3e013cf
Signed-off-by: Lin Yang <lin.a.yang@intel.com>
event_dict = trigger_info(os.getenv('TRIGGER_INFO'))
+ # check whether this is buildcheck project
+ if ':buildcheck:' not in event_dict['project']:
+ print 'This project %s is not buildcheck project, exit now' \
+ % event_dict['project']
+ return end(tmpdir)
+
if event_dict['type'] == 'OBS_REPO_PUBLISH_STATE' and \
event_dict['state'] != 'published':
print 'repo is publishing, exit now'