Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/omkarkhatavkar/maven
Maven
https://github.com/omkarkhatavkar/maven
Last synced: 7 days ago
JSON representation
Maven
- Host: GitHub
- URL: https://github.com/omkarkhatavkar/maven
- Owner: omkarkhatavkar
- Created: 2013-08-24T07:06:10.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-13T10:30:12.000Z (about 11 years ago)
- Last Synced: 2023-08-03T20:12:41.537Z (over 1 year ago)
- Language: CSS
- Size: 3.77 MB
- Stars: 0
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Here are Steps which I used to Integrate Jenkins-Selenium-Maven-Github.
Prerequistes:
JDK (1.7),
Maven (3.1.0),
Git Bash(1.8.3),
Eclipse IDE ,
Jenkins War file (jenkins.war).
Installation Steps to Start
1) Install Java
All steps are specified in the following link : http://www3.ntu.edu.sg/home/ehchua/programming/howto/JDK_Howto.html2) Install Maven
All steps are specified in the following link : http://www.mkyong.com/maven/how-to-install-maven-in-windows/3) Install Git
All steps are specified in the following link : http://git-scm.com/book/en/Getting-Started-Installing-Git"
4) Download the latest Jenkins war file from http://jenkins-ci.org/
You can create your own mavenize project using below steps or You can take git clone my project too.
or find the link http://www.mkyong.com/maven/how-to-create-a-project-with-maven-template/1) Create Directory C:\ > mkdir project_name
2) Go into directory C:\ > cd project_name
3) Create a Maven Instance by command C:\project_name>mvn archetype:generate4)
Define value for groupId : com.project
Define value for artifactId : project_name
Define value for version : 1.0-SNAPSHOT: : 1.0
Define value for package : com.mkyong: : testing5) Maven Project is now created.To import that project in Eclipse run following command :
C:\project_name>cd project_name
C:\project_name\project_name>mvn eclipse:eclipse
6) This will add .classpath file in project.Now import that project in Eclipse IDE
7) Set path for .m2 variable in eclipse (http://www.mkyong.com/maven/how-to-configure-m2_repo-variable-in-eclipse-ide/)link for details
Now you are doen with Maven Project. Now move on Jenkins Settup as below.1) Download Jenkins war file from http://jenkins-ci.org/
2) Run that war file as standalone server as C:\>java -jar jenkins.war (as I save that war file in C drive )
3) Jenkins up will be running at default http://localhost:8080/ url
4) Install GitHub plugin from navigating from Jenkins->Manage Jenkins->Manage Plugins
5) Now navigate to Jenkins->Configure System and Do setting for maven as Install automatically with variable name mention as in Enviroment Variable.(like M2_Repo in my case)
6) Apply and Save all setting made in configuration.
We all are done with Jenkins Setup.Now We look into Jenkins job1) Create New job with click (Build a maven2/3 project) option.
2) In Source Code Management Check git option
3) Provide your github repository URL where you have hosted your project.
4) give branch name for Branches to build (i.e.master)
5) In Build section give relative path for pom.xml from repo name present in github
6) Give goal as test to run the project or In my Github project I given as -Dbrowser firefox -Dinstance http://google.com test
7) Now apply the changes, save the settings and build the project.
Hope this will you to build Jenkins with Selenium.This not covers selenium grid integration with Jenkins. May be in next version I will add it