FailedConsole Output

GitHub pull request #51 of commit c756fb8e76848f0bee7abd9905dbed6a65ad043f automatically merged.
[EnvInject] - Loading node environment variables.
Building remotely on amp-jenkins-worker-06 (centos) in workspace /home/jenkins/workspace/e-mission-phone-android-prb
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.github-prb.url https://github.com/e-mission/e-mission-phone # timeout=10
Fetching upstream changes from https://github.com/e-mission/e-mission-phone
 > git --version # timeout=10
 > git fetch --tags --progress https://github.com/e-mission/e-mission-phone +refs/pull/*:refs/remotes/origin/pr/*
 > git rev-parse origin/pr/51/merge^{commit} # timeout=10
 > git branch -a --contains 474cee0e5bbc61774939eee9880e6a9d8a4e76bf # timeout=10
 > git rev-parse remotes/origin/pr/51/merge^{commit} # timeout=10
Checking out Revision 474cee0e5bbc61774939eee9880e6a9d8a4e76bf (origin/pr/51/merge)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 474cee0e5bbc61774939eee9880e6a9d8a4e76bf
First time build. Skipping changelog.
[Gradle] - Launching build.
[android] $ /home/jenkins/workspace/e-mission-phone-android-prb/android/gradlew -DghprbTriggerAuthorEmail=incomplete@gmail.com -DghprbTargetBranch=master -DghprbSourceBranch=upgrade_to_api_22 "-DghprbActualCommitAuthor=K. Shankari" -Dsha1=origin/pr/51/merge -DghprbPullLink=https://api.github.com/repos/e-mission/e-mission-phone/pulls/51 -DghprbActualCommit=c756fb8e76848f0bee7abd9905dbed6a65ad043f -DGIT_BRANCH=upgrade_to_api_22 -DghprbPullAuthorEmail= -DghprbActualCommitAuthorEmail=shankari@eecs.berkeley.edu -DghprbTriggerAuthor=shane -DghprbPullId=51 "-DghprbPullTitle=Upgrade the phone repo to api version 22 and cordova 5.0.0" "-DghprbPullDescription=GitHub pull request #51 of commit c756fb8e76848f0bee7abd9905dbed6a65ad043f automatically merged." build
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles
:CordovaLib:preBuild FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':CordovaLib:preBuild'.
> failed to find target android-22 : /home/android-sdk

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 13.56 secs
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
ERROR: Failed to set Jenkins Identity header on email.
java.lang.NullPointerException
	at org.jenkinsci.main.modules.instance_identity.InstanceIdentity.get(InstanceIdentity.java:126)
	at jenkins.plugins.mailer.tasks.MimeMessageBuilder.setJenkinsInstanceIdent(MimeMessageBuilder.java:188)
	at jenkins.plugins.mailer.tasks.MimeMessageBuilder.buildMimeMessage(MimeMessageBuilder.java:166)
	at hudson.tasks.MailSender.createEmptyMail(MailSender.java:391)
	at hudson.tasks.MailSender.createFailureMail(MailSender.java:260)
	at hudson.tasks.MailSender.createMail(MailSender.java:178)
	at hudson.tasks.MailSender.run(MailSender.java:107)
	at hudson.tasks.Mailer.perform(Mailer.java:141)
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:75)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726)
	at hudson.model.Build$BuildExecution.post2(Build.java:185)
	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671)
	at hudson.model.Run.execute(Run.java:1769)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:374)
Sending e-mails to: shankari@eecs.berkeley.edu
Finished: FAILURE