Fix tensorflow configuration

Run TF build directly using jenkins job configure syntax.
No longer run TF tests on Windows, for three reasons:
1. TF doesn't have presubmit for Bazel build yet, so they are easy to be
   broken
2. TF Tests on Windows requires special setup (build TF pip, install it,
   and run tests from another directory to avoid python package conflict,
   not expressible with the json file)
3. It never catchs any actual error from Bazel side.

Change-Id: I77e32f2d005fa7f269f2b9f938a439e667b801aa
diff --git a/jenkins/jobs/configs/tensorflow.json b/jenkins/jobs/configs/tensorflow.json
index 2ed992a..05bb7e8 100644
--- a/jenkins/jobs/configs/tensorflow.json
+++ b/jenkins/jobs/configs/tensorflow.json
@@ -27,14 +27,16 @@
             "configurations": [{"node": "windows-x86_64"}]
         }],
         "parameters": {
-            // TODO(dmarting): this is terrible, can we actually call Bazel?
-            "tests": [],
-            "targets": [],
             "configure": [
-                "del c:\\tools\\msys64\\usr\\bin\\bazel.exe",
-                "copy %BAZEL% c:\\tools\\msys64\\usr\\bin\\bazel.exe",
-                ".\\tensorflow\\tools\\ci_build\\windows\\cpu\\pip\\run.bat"
+                "SET TMPDIR=c:/tmp", // Use a short output root to avoid potential long path issue
+                "SET BAZEL_SH=c:/tools/msys64/usr/bin/bash.exe",
+                "yes '' | python ./configure.py"
             ],
+            "build_opts": [
+                "-c opt",
+                "--define=override_eigen_strong_inline=true" // speed up the compiling, see https://github.com/tensorflow/tensorflow/issues/10521
+            ],
+            "targets": ["//tensorflow/tools/pip_package:build_pip_package"]
         }
     }
 ]