[build] Skipping the check of TSAN dependencies when build in non-TSAN configuration

Jenkins' workspaces are reused from one build to another in
an attempt to avoid re-building thirdparty to reduce time,
but it might introduce cross-pollution.

For example, there is a librocksdb.so built incorrectly
dependent libstdc++ by https://gerrit.cloudera.org/c/18241
in a patch set, but it is checked by other CR's jenkins
tasks and cause these tasks failed.

This patch aim to skip the check of TSAN dependencies when
build in non-TSAN configuration.

Change-Id: I8101dea0cd039392dbbc889e66e7a4259dc1b9c2
Reviewed-on: http://gerrit.cloudera.org:8080/18577
Tested-by: Alexey Serbin <alexey@apache.org>
Reviewed-by: Alexey Serbin <alexey@apache.org>
2 files changed