That's a message from the Android Gradle plugin, not Jenkins.

Does the directory exist *and* does the "Jenkins" user have full access to that directory, and to execute files within it?

-Chris

PS. It would be easier to use the Android SDK Manager Plugin for Gradle:
https://github.com/JakeWharton/sdk-manager-plugin/


On 08/08/15 01:03, Pratik Jaiswal wrote:
Log:

Started by user anonymous <http://localhost:8080/user/null>

[EnvInject] - Loading node environment variables.
Building in workspace /Users/Shared/Jenkins/Home/jobs/Automated Testing 
Check/workspace
  > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
  > git config remote.origin.urlhttps://github.com/jpratik21/Testing  # 
timeout=10
Fetching upstream changes fromhttps://github.com/jpratik21/Testing
  > git --version # timeout=10
using .gitcredentials to set credentials
  > git config --local credential.helper store 
--file=/Users/Shared/Jenkins/tmp/git6483021201942154298.credentials # timeout=10
  > git -c core.askpass=true fetch --tags 
--progresshttps://github.com/jpratik21/Testing  +refs/heads/*:refs/remotes/origin/*
  > git config --local --remove-section credential # timeout=10
  > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
  > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 3a3c7825ebf737c3193903368914a4b3c9528a4f 
(refs/remotes/origin/master)
  > git config core.sparsecheckout # timeout=10
  > git checkout -f 3a3c7825ebf737c3193903368914a4b3c9528a4f
  > git rev-list 3a3c7825ebf737c3193903368914a4b3c9528a4f # timeout=10
[Gradle] - Launching build.
[workspace] $ "/Users/Shared/Jenkins/Home/jobs/Automated Testing 
Check/workspace/gradlew" clean build

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
The SDK directory '/Users/jpratik/Library/Android/sdk' does not exist.

* 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: 9.163 secs

Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
[android-lint] Skipping publisher since build result is FAILURE
Archiving artifacts
Recording test results

ERROR: Publisher 'Publish JUnit test result report' failed: No test report 
files were found. Configuration error?
Finished  <http://stacktrace.jenkins-ci.org/search?query=Finished>: FAILURE



My screenshot attached says that the android SDK does exist but jenkins says it 
doesn't. Tried with ENV var:ANDROID_HOME too / ski.dir=pathtosdk...Any help 
??????


--
You received this message because you are subscribed to the Google
Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/6eb43fba-4ee8-463e-a56c-773f7188f4cc%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/6eb43fba-4ee8-463e-a56c-773f7188f4cc%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/55C53ADE.1090204%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to