Posts

Showing posts from December, 2015

Solving Gradle DSL method not found : 'android()'

Image
Getting "Gradle DSL method not found : 'android()" error, well then you are at right place to solve the things :)


Solution:
Open the project top level 'build.gradle' file Remove the below configuration  android() method  // Delete these lines from project top level 'build.gradle' file android {  compileSdkVersion 23  buildToolsVersion '22.0.1' }
Save the changes and re-compile

Configure Jenkins email notifications

Image
In this tutorial we will discuss about setting up the email notification in your Jenkins environment from the start :

Part I: Configure the email notifications from Jenkins Management section.
Part II : Configure the email notification for the individual Jenkins job  

Part I: Configure the email notifications from Jenkins Management section.
First you should be logged in to Jenkins interface as Administrators, so you should see 'Manage Jenkins' link on the left side options. Click on the 'Manage Jenkins', to navigate to 'Manage Jenkins' page. 'Configure System' option should be available Click on the 'Configure System' link, scroll down on 'Configure System' page, you should see the 'Email notifications' section. Set the following settings in the 'Email notification' section [We are taking yahoo domain for example]SMTP Server : smtp.mail.yahoo.comCheck 'Use SMTP Authentication'Username : <email address to send emails&…

Some helpful commands to build multi-module maven project tests

Build and execute tests from all the sub modules


mvn clean install
Build and execute tests from a specific sub module

mvn clean install -pl <module-name> -am
Build and execute a specific test from a specific sub module

mvn -DfailIfNoTests=false -Dtest=<test-class-name> clean install -pl <module-name> -ammvn -DfailIfNoTests=false -Dtest=<test-class-name#test-method-name> clean install -pl <module-name> -am