Gradle: "Task assembleDebug not found in root project" with jenkins but no error in CMD

977 views
Skip to first unread message

jack

unread,
Jun 22, 2018, 3:43:14 AM6/22/18
to gradle-dev
Hello everyone, I know this sounds like a Jenkins question not a gradle one but please let me finish...

I got a cordova-based android project from my company, I need to build with Jenkins automatically after each commit; while other android projects and empty cordova projects can be built without error in Jenkins, this real project just cannot be handled by jenkins, always says "task not found in root project", but I can successfully build it in CMD or in android studio. So I told Jenkins to prompt me the result of a "tasks --all" command and surprisingly it indeed cannot find any android tasks or build tasks, however in cmd I can find all of them and all tasks are a success.

What could possibly be wrong? I know that in order to integrate with cordova the devs have made huge modifs in the gradle files of this project, but I checked the code, nothing apparently wrong, but I can't seem to see where the definition of all those tasks is...

Could someone kindly provide any suggestions on why this happens, and let me know where are all the tasks defined so I can go checkout the code please? Thanks very much :)

Bellinger, Matthew

unread,
Jun 22, 2018, 4:12:12 PM6/22/18
to gradl...@googlegroups.com

Greetings,

 

I am not a Gradle dev, but from what I understand, this mailing list was used for discussion of Gradle development itself, and has since moved to Github/Github Issues for the most part. For questions like yours, about the usage of Gradle in building other projects, you should use https://discuss.gradle.org/c/help-discuss

 

 

~Matt Bellinger

--
You received this message because you are subscribed to the Google Groups "gradle-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gradle-dev+...@googlegroups.com.
To post to this group, send email to gradl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gradle-dev/a52962f1-46f9-4780-9e2d-081b2087ec5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


This message is intended only for the addressee and may contain information that is company confidential or privileged. Any technical data in this message may be exported only in accordance with the U.S. International Traffic in Arms Regulations (22 CFR Parts 120-130) or the Export Administration Regulations (15 CFR Parts 730-774). Unauthorized use is strictly prohibited and may be unlawful. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, you should not read, copy, disclose or otherwise use this message. If you have received this email in error, please delete it, and advise the sender immediately.

Eric Wendelin

unread,
Jun 25, 2018, 1:11:59 PM6/25/18
to gradle-dev
Matt is exactly right. We're happy to help out with questions like this on the forums.

Cheers,
Eric


On Friday, June 22, 2018 at 1:12:12 PM UTC-7, matthew.bellinger wrote:

Greetings,

 

I am not a Gradle dev, but from what I understand, this mailing list was used for discussion of Gradle development itself, and has since moved to Github/Github Issues for the most part. For questions like yours, about the usage of Gradle in building other projects, you should use https://discuss.gradle.org/c/help-discuss

 

 

~Matt Bellinger

 

From: gradl...@googlegroups.com [mailto:gradl...@googlegroups.com] On Behalf Of jack
Sent: Friday, June 22, 2018 03:44
To: gradle-dev <gradl...@googlegroups.com>
Subject: [gradle-dev] Gradle: "Task assembleDebug not found in root project" with jenkins but no error in CMD

 

Hello everyone, I know this sounds like a Jenkins question not a gradle one but please let me finish...

 

I got a cordova-based android project from my company, I need to build with Jenkins automatically after each commit; while other android projects and empty cordova projects can be built without error in Jenkins, this real project just cannot be handled by jenkins, always says "task not found in root project", but I can successfully build it in CMD or in android studio. So I told Jenkins to prompt me the result of a "tasks --all" command and surprisingly it indeed cannot find any android tasks or build tasks, however in cmd I can find all of them and all tasks are a success.

 

What could possibly be wrong? I know that in order to integrate with cordova the devs have made huge modifs in the gradle files of this project, but I checked the code, nothing apparently wrong, but I can't seem to see where the definition of all those tasks is...

 

Could someone kindly provide any suggestions on why this happens, and let me know where are all the tasks defined so I can go checkout the code please? Thanks very much :)

--
You received this message because you are subscribed to the Google Groups "gradle-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gradle-dev+...@googlegroups.com.

To post to this group, send email to grad...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages