Continuous Integration with Hudson:

Hudson monitors executions of repeated jobs, such as building a software project or jobs run by cron.

Install and Launch Hudson:

User can install and launch Hudson by following these steps:

  • Download Hudson.war file from following location
    Go to the URL http://hudson-ci.org/download/war/ and download the latest war file
  • Save the downloaded file into any specific location
  • Execute the .war file
  • Wait till all the initialization process is completed.
  • Open any browser and open http://systemname:8081/
  • If using selenium grid, we need to install Selenium Grid plugin
  • Click Manage Hudson link from Hudson dashboard
  • Click Manage Plugins link
  • Click Available tab
  • Select Selenium Grid option which you would see on the page, after selection click Install button which exists at the bottom of the page
  • After installation you need to Restart the Hudson.war execution to make the installation effective
  • User can do this if he uses Ctrl+C command on the terminal from where we launch Hudson
  • After shutting down Hudson user needs to restart the Hudson with the help of same command java –jar Hudson.war –httpPort=8081
  • Refresh the url http://systemname:8081 into your browser
  • Now user would see Selenium Grid link on the dashboard
  • You can verify Selenium Grid plugin installation if you open url http://localhost:4444/console into the browser window
  • Launch some instances of selenium grid on different ports

Creating a JOB:

  • Click on New Job link
  • Enter a Job name into the Job Name field
  • Select Build a free-style software project radio option
  • Click Ok
  • Now our motive is to execute Ant targets
  • When user would choose Invoke Ant option then need to enter inputs according to same
  • Save the Job form

Hope this helps in understanding the implementation of Hudson with your automation framework.