title: jenkins finished success while the make command failure
body: <p>I used jenkins to build android image nightly, and then found even the <code>make</code> and <code>cp</code> command failure,the jenkins still finished success.</p>
  
  <p>The last build setup is to copy log file to job directory, so maybe it succeed，and then jenkins finished SUCCESS.</p>
  
  <p>And the Text-finder plugin can only set build unstable not failure, so how to make the build failure when <code>make</code> fails.</p>
  
  <p>The log is like this:</p>
  
  <pre><code>make: \*** No rule to make target \`device/vendor/product/google_frameworks/Google_Play.apk', needed by `out/target/product/device/system/app/Google_Play.apk'.  Stop.
  make: *** Waiting for unfinished jobs....
  target R.java/Manifest.java: FileBrowser(out/target/common/obj/APPS/FileBrowser_intermediates/src/R.stamp)
  Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest. untranslatable but exists in locale 'zh_CN'
  aapt: warning: string 'pref_development_uastring' has no default translation in packages/apps/Browser/res; found: zh_CN zh_TW
  Note: Recompile with -Xlint:unchecked for details.
  ======================&gt;End&lt;=======================
  cp: cannot stat `/home/jenkins/job_name/source/out/target/product/device/package.img': No such    file or directory
  Extended Email Publisher is currently disabled in project settings
  Finished: SUCCESS
  </code></pre>