Jenkins

 Jenkins Configuration

Step1:

Install jenkins war

java -jar jenkins.war

it will give a password

Localhost:8080

Enter the password and set username and password


Login to jenkins

Login to jenkins 

jenkins

jenkins

java -Dhudson.model.DirectoryBrowserSupport.CSP="" -jar jenkins.war


Sep2:

manage Jenkins--->plugin Manager

Maven Integration

HTML Publisher Plugins


Step3: Global configuratin

1. Global tool Configuration

2. ADD JDK path

   JAVA_HOME=Name 

   enter the java home path for JAVA_HOME(till jdk folder path)

3. Add MAVEN_HOME

   and add its path(add till apche maven folder)



Step4: Create a New Job

Enter item name

Make sure Select Maven project from list 

Under Build Environment tab, Build Section, Root POM, enter the path of pom.xml of your project

Goals and options= clean test

Under Build tabl, post build actions

enter path of html director name

ex: D:\MobileTesting\PageObjectModelwithPageFactories\reports

index pages: *.html

Report title= Mavenhtmlreports


Step5: 


Run the Build


Comments

Popular Posts