Jenkins says: The SDK directory '/Users/jpratik/Library/Android/sdk' does not exist but it does

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Jenkins says: The SDK directory '/Users/jpratik/Library/Android/sdk' does not exist but it does

Pratik Jaiswal
Log:

Started by user anonymous
[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.url https://github.com/jpratik21/Testing # timeout=10
Fetching upstream changes from https://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 --progress https://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: 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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6eb43fba-4ee8-463e-a56c-773f7188f4cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins says: The SDK directory '/Users/jpratik/Library/Android/sdk' does not exist but it does

Pratik Jaiswal



On Friday, August 7, 2015 at 4:03:40 PM UTC-7, Pratik Jaiswal wrote:
Log:

Started by user <a href="http://localhost:8080/user/null" style="white-space:pre-wrap;word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A8080%2Fuser%2Fnull\46sa\75D\46sntz\0751\46usg\75AFQjCNHq04EVKqyTIOkw0Y7z_-T7e6iOPQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A8080%2Fuser%2Fnull\46sa\75D\46sntz\0751\46usg\75AFQjCNHq04EVKqyTIOkw0Y7z_-T7e6iOPQ&#39;;return true;">anonymous
[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.url <a href="https://github.com/jpratik21/Testing" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;">https://github.com/jpratik21/Testing # timeout=10
Fetching upstream changes from <a href="https://github.com/jpratik21/Testing" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;">https://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 --progress <a href="https://github.com/jpratik21/Testing" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;">https://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?
<a href="http://stacktrace.jenkins-ci.org/search?query=Finished" style="word-wrap:break-word;color:inherit" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%3Fquery%3DFinished\46sa\75D\46sntz\0751\46usg\75AFQjCNHssCpxo_9SBDo1QnB2Ildtqrjfaw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%3Fquery%3DFinished\46sa\75D\46sntz\0751\46usg\75AFQjCNHssCpxo_9SBDo1QnB2Ildtqrjfaw&#39;;return true;">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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e419f33c-12ea-403a-897d-8427b6531cf6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins says: The SDK directory '/Users/jpratik/Library/Android/sdk' does not exist but it does

Christopher Orr
In reply to this post by Pratik Jaiswal
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 [hidden email]
> <mailto:[hidden email]>.
> 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 [hidden email].
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 | Threaded
Open this post in threaded view
|

Re: Jenkins says: The SDK directory '/Users/jpratik/Library/Android/sdk' does not exist but it does

Pratik Jaiswal
In reply to this post by Pratik Jaiswal
Hi Chris,

I am not an expert of these things and so, could you please walk me through how you give full access to this "anonymous user" ?
I did chmod 777 pathtosdk and yeah, android SDK directory does exist (its in the screenshot that I have attached ?

Thanks!
Pratik

On Friday, August 7, 2015 at 4:03:40 PM UTC-7, Pratik Jaiswal wrote:
Log:

Started by user <a href="http://localhost:8080/user/null" style="white-space:pre-wrap;word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A8080%2Fuser%2Fnull\46sa\75D\46sntz\0751\46usg\75AFQjCNHq04EVKqyTIOkw0Y7z_-T7e6iOPQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A8080%2Fuser%2Fnull\46sa\75D\46sntz\0751\46usg\75AFQjCNHq04EVKqyTIOkw0Y7z_-T7e6iOPQ&#39;;return true;">anonymous
[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.url <a href="https://github.com/jpratik21/Testing" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;">https://github.com/jpratik21/Testing # timeout=10
Fetching upstream changes from <a href="https://github.com/jpratik21/Testing" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;">https://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 --progress <a href="https://github.com/jpratik21/Testing" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;">https://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?
<a href="http://stacktrace.jenkins-ci.org/search?query=Finished" style="word-wrap:break-word;color:inherit" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%3Fquery%3DFinished\46sa\75D\46sntz\0751\46usg\75AFQjCNHssCpxo_9SBDo1QnB2Ildtqrjfaw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%3Fquery%3DFinished\46sa\75D\46sntz\0751\46usg\75AFQjCNHssCpxo_9SBDo1QnB2Ildtqrjfaw&#39;;return true;">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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/49b9a0e4-d28f-4f99-8951-c00964de2b56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins says: The SDK directory '/Users/jpratik/Library/Android/sdk' does not exist but it does

Pratik Jaiswal
In reply to this post by Pratik Jaiswal
After adding android-sdk-manager plugin to the build.gradle, it says permission denied. Can someone help me in adding more permission ?

Started by user anonymous
[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.url https://github.com/jpratik21/Testing # timeout=10
Fetching upstream changes from https://github.com/jpratik21/Testing
 > git --version # timeout=10
using .gitcredentials to set credentials
 > git config --local credential.helper store --file=/Users/Shared/Jenkins/tmp/git495701130454661106.credentials # timeout=10
 > git -c core.askpass=true fetch --tags --progress https://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 326d20feb5be2e81cc51f954e7c0a7453283a9f0 (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 326d20feb5be2e81cc51f954e7c0a7453283a9f0
 > git rev-list 3a3c7825ebf737c3193903368914a4b3c9528a4f # timeout=10
[Gradle] - Launching build.
[workspace] $ "/Users/Shared/Jenkins/Home/jobs/Automated Testing Check/workspace/gradlew" clean build
Download https://jcenter.bintray.com/com/jakewharton/sdkmanager/gradle-plugin/0.12.0/gradle-plugin-0.12.0.pom
Download https://jcenter.bintray.com/org/rauschig/jarchivelib/0.6.0/jarchivelib-0.6.0.pom
Download https://jcenter.bintray.com/commons-io/commons-io/2.4/commons-io-2.4.pom
Download https://jcenter.bintray.com/org/apache/commons/commons-parent/25/commons-parent-25.pom
Download https://jcenter.bintray.com/org/apache/apache/9/apache-9.pom
Download https://jcenter.bintray.com/org/apache/commons/commons-compress/1.8/commons-compress-1.8.pom
Download https://jcenter.bintray.com/org/tukaani/xz/1.5/xz-1.5.pom
Download https://jcenter.bintray.com/com/jakewharton/sdkmanager/gradle-plugin/0.12.0/gradle-plugin-0.12.0.jar
Download https://jcenter.bintray.com/org/rauschig/jarchivelib/0.6.0/jarchivelib-0.6.0.jar
Download https://jcenter.bintray.com/commons-io/commons-io/2.4/commons-io-2.4.jar
Android SDK not found. Downloading...

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/Shared/Jenkins/Home/jobs/Automated Testing Check/workspace/build.gradle' line: 17

* What went wrong:
A problem occurred evaluating root project 'workspace'.
> Failed to apply plugin [id 'android-sdk-manager']
   > /Users/jpratik/Library/Android/android-sdk.temp (Permission denied)

* 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: 12.369 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: FAILURE

On Friday, August 7, 2015 at 4:03:40 PM UTC-7, Pratik Jaiswal wrote:
Log:

Started by user <a href="http://localhost:8080/user/null" style="white-space:pre-wrap;word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A8080%2Fuser%2Fnull\46sa\75D\46sntz\0751\46usg\75AFQjCNHq04EVKqyTIOkw0Y7z_-T7e6iOPQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A8080%2Fuser%2Fnull\46sa\75D\46sntz\0751\46usg\75AFQjCNHq04EVKqyTIOkw0Y7z_-T7e6iOPQ&#39;;return true;">anonymous
[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.url <a href="https://github.com/jpratik21/Testing" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;">https://github.com/jpratik21/Testing # timeout=10
Fetching upstream changes from <a href="https://github.com/jpratik21/Testing" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;">https://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 --progress <a href="https://github.com/jpratik21/Testing" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;">https://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?
<a href="http://stacktrace.jenkins-ci.org/search?query=Finished" style="word-wrap:break-word;color:inherit" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%3Fquery%3DFinished\46sa\75D\46sntz\0751\46usg\75AFQjCNHssCpxo_9SBDo1QnB2Ildtqrjfaw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%3Fquery%3DFinished\46sa\75D\46sntz\0751\46usg\75AFQjCNHssCpxo_9SBDo1QnB2Ildtqrjfaw&#39;;return true;">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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/826edf08-328d-489f-a93b-acb003ee59aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins says: The SDK directory '/Users/jpratik/Library/Android/sdk' does not exist but it does

Christopher Orr
That's most likely happening because you're overriding ANDROID_HOME —
remove environment customisations like that and then the SDK should
install fine.

Learning about Unix file system permissions is a task better suited to
Google than this mailing list.

Regards,
Chris


On 08/08/15 01:34, Pratik Jaiswal wrote:

> After adding android-sdk-manager plugin to the build.gradle, it says permission denied. Can someone help me in adding more permission ?
>
>
> Started by useranonymous  <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/git495701130454661106.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 326d20feb5be2e81cc51f954e7c0a7453283a9f0 (refs/remotes/origin/master)
>   > git config core.sparsecheckout # timeout=10
>   > git checkout -f 326d20feb5be2e81cc51f954e7c0a7453283a9f0
>   > git rev-list 3a3c7825ebf737c3193903368914a4b3c9528a4f # timeout=10
> [Gradle] - Launching build.
> [workspace] $ "/Users/Shared/Jenkins/Home/jobs/Automated Testing Check/workspace/gradlew" clean build
>
> Downloadhttps://jcenter.bintray.com/com/jakewharton/sdkmanager/gradle-plugin/0.12.0/gradle-plugin-0.12.0.pom
>
> Downloadhttps://jcenter.bintray.com/org/rauschig/jarchivelib/0.6.0/jarchivelib-0.6.0.pom
> Downloadhttps://jcenter.bintray.com/commons-io/commons-io/2.4/commons-io-2.4.pom
> Downloadhttps://jcenter.bintray.com/org/apache/commons/commons-parent/25/commons-parent-25.pom
> Downloadhttps://jcenter.bintray.com/org/apache/apache/9/apache-9.pom
> Downloadhttps://jcenter.bintray.com/org/apache/commons/commons-compress/1.8/commons-compress-1.8.pom
> Downloadhttps://jcenter.bintray.com/org/tukaani/xz/1.5/xz-1.5.pom
>
> Downloadhttps://jcenter.bintray.com/com/jakewharton/sdkmanager/gradle-plugin/0.12.0/gradle-plugin-0.12.0.jar
>
> Downloadhttps://jcenter.bintray.com/org/rauschig/jarchivelib/0.6.0/jarchivelib-0.6.0.jar
> Downloadhttps://jcenter.bintray.com/commons-io/commons-io/2.4/commons-io-2.4.jar
>
> Android SDK not found. Downloading...
>
> FAILURE: Build failed with an exception.
>
> * Where:
> Build file '/Users/Shared/Jenkins/Home/jobs/Automated Testing Check/workspace/build.gradle' line: 17
>
> * What went wrong:
> A problem occurred evaluating root project 'workspace'.
>> Failed to apply plugin [id 'android-sdk-manager']
>     > /Users/jpratik/Library/Android/android-sdk.temp (Permission denied)
>
> * 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: 12.369 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
>
>
> On Friday, August 7, 2015 at 4:03:40 PM UTC-7, 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  <https://github.com/jpratik21/Testing>  # timeout=10
>     Fetching upstream changes fromhttps://github.com/jpratik21/Testing  <https://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  <https://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 [hidden email]
> <mailto:[hidden email]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/826edf08-328d-489f-a93b-acb003ee59aa%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/826edf08-328d-489f-a93b-acb003ee59aa%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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/55C5595E.7000307%40orr.me.uk.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins says: The SDK directory '/Users/jpratik/Library/Android/sdk' does not exist but it does

Pratik Jaiswal
In reply to this post by Pratik Jaiswal
Hi Chris,

Thanks and yeah, it was overlapping of env variables. I have removed all except the global one and kept it in ${ANDROID_HOME}.

-Pratik

On Friday, August 7, 2015 at 4:03:40 PM UTC-7, Pratik Jaiswal wrote:
Log:

Started by user <a href="http://localhost:8080/user/null" style="white-space:pre-wrap;word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A8080%2Fuser%2Fnull\46sa\75D\46sntz\0751\46usg\75AFQjCNHq04EVKqyTIOkw0Y7z_-T7e6iOPQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Flocalhost%3A8080%2Fuser%2Fnull\46sa\75D\46sntz\0751\46usg\75AFQjCNHq04EVKqyTIOkw0Y7z_-T7e6iOPQ&#39;;return true;">anonymous
[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.url <a href="https://github.com/jpratik21/Testing" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;">https://github.com/jpratik21/Testing # timeout=10
Fetching upstream changes from <a href="https://github.com/jpratik21/Testing" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;">https://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 --progress <a href="https://github.com/jpratik21/Testing" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\46sa\75D\46sntz\0751\46usg\75AFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;">https://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?
<a href="http://stacktrace.jenkins-ci.org/search?query=Finished" style="word-wrap:break-word;color:inherit" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%3Fquery%3DFinished\46sa\75D\46sntz\0751\46usg\75AFQjCNHssCpxo_9SBDo1QnB2Ildtqrjfaw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\75http%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%3Fquery%3DFinished\46sa\75D\46sntz\0751\46usg\75AFQjCNHssCpxo_9SBDo1QnB2Ildtqrjfaw&#39;;return true;">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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/66dc88af-9368-4100-9b50-9b43d5a5d3e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins says: The SDK directory '/Users/jpratik/Library/Android/sdk' does not exist but it does

iamisathya
In reply to this post by Pratik Jaiswal

It's due to permission problem. So it can be fixed by 2 ways

  1.  1. Run below commands in ~/Library/ path by using terminal

    chmod 777

         at /Users/username/Library/. Check permission by execute ls -s command

         So /Users/username/Library/ should now show the permission like this drwxr-xr-x@

  2.  2. Second way

       Run below command on Terminal to unhide library inside File explorer

    chflags nohidden ~/Library/

        So now navigate & right click on Library folder -> Get info -> Scroll down -> change permission on permission in dialog

    Setting permission for Library directory

Now run jerkin, it should be able to access the sdk directory inside Library


On Saturday, August 8, 2015 at 4:33:40 AM UTC+5:30, Pratik Jaiswal wrote:
Log:

Started by user <a href="http://localhost:8080/user/null" style="white-space:pre-wrap;word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8080%2Fuser%2Fnull\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHq04EVKqyTIOkw0Y7z_-T7e6iOPQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8080%2Fuser%2Fnull\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHq04EVKqyTIOkw0Y7z_-T7e6iOPQ&#39;;return true;">anonymous
[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.url <a href="https://github.com/jpratik21/Testing" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;">https://github.com/jpratik21/Testing # timeout=10
Fetching upstream changes from <a href="https://github.com/jpratik21/Testing" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;">https://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 --progress <a href="https://github.com/jpratik21/Testing" style="word-wrap:break-word;text-decoration:underline;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjpratik21%2FTesting\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHD2b2eVc87ZLWXI3F-cMEVWTrX0g&#39;;return true;">https://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?
<a href="http://stacktrace.jenkins-ci.org/search?query=Finished" style="word-wrap:break-word;color:inherit" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%3Fquery%3DFinished\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHssCpxo_9SBDo1QnB2Ildtqrjfaw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fstacktrace.jenkins-ci.org%2Fsearch%3Fquery%3DFinished\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHssCpxo_9SBDo1QnB2Ildtqrjfaw&#39;;return true;">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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/11b692e0-43de-426c-84b5-9dd2ec10cccb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.