The installation procedure of Jenkins on on Windows, Mac OS X, Ubuntu

Software requirement
Create an Environment Variable JAVA_HOME
  •     Windows
  •     Ubuntu
  •     Mac OS X --> Skip this step. No need to do anything.

Download and Install Apache Tomcat Server on Windows, Mac OS X, Ubuntu
Windows
  1. Goto http://tomcat.apache.org --> Downloads --> Tomcat 8.0 --> "8.0.{xx}" (where {xx} is the latest upgrade number) --> Binary Distributions --> Core --> "ZIP" package (e.g., "apache-tomcat-8.0.{xx}.zip", about 8 MB).
  2. Create your project directory, say "d:\myProject" or "c:\myProject". UNZIP the downloaded file into your project directory. Tomcat will be unzipped into directory "d:\myProject\apache-tomcat-8.0.{xx}".
  3. For ease of use, we shall shorten and rename this directory to "d:\myProject\tomcat".  

Mac OS X
  • Goto http://tomcat.apache.org --> Download --> Tomcat 8.0 --> "8.0.{xx}" (where {xx} denotes the latest upgrade number) --> Binary distribution --> Core --> "tar.gz" package (e.g., "apache-tomcat-8.0.{xx}.tar.gz", about 8 MB)
  • To install Tomcat:
  1. Goto "~/Downloads", double-click the downloaded tarball (e.g., "apache-tomcat-8.0.{xx}.tar.gz") to expand it into a folder (e.g., "apache-tomcat-8.0.{xx}")
  2. Move the extracted folder (e.g., "apache-tomcat-8.0.{xx}") to "/Applications".
  3. For ease of use, we shall shorten and rename this folder to "tomcat".
 Configure Tomcat Server
  • Open  tomcate-users.xml  file under "Tomcat_Home\conf\"
  • Enable the Tomcat's manager by adding the highlighted lines, inside the <tomcat-users> elements:
<tomcat-users>
  <role rolename="manager-gui"/>
  <user username="manager" password="xxxx" roles="manager-gui"/>
</tomcat-users>

Copy the jenkins.war to the Tomcat directory.:
Windows
copy jenkins.war and paste to D:\myProject\tomcat\
Ubuntu
sudo cp jenkins.war /var/lib/tomcat/webapps/
Mac OS X
sudo cp jenkins.war /Applications/tomcat/webapps/    

Start and Shutdown Tomcat Server:
Windows
1. Navigate to bin folder under tomcat directory by window Command Prompt
   Write below command to run tomcat server
       startup
   Type below command to stop tomcat server
     shutdown 
Ubuntu and Mac OS X
1. Goto to bin folder under tomcat directory using Terminal
     Write below command to run tomcat server
        sudo ./startup.sh
     Type below command to stop tomcat server
        sudo ./shutdown.sh

After starting tomcat server, Open browser and enter url like http://localhost:8080/jenkins_war_filename/ on browser address bar
Example: http://localhost:8080/jenkins/






The installation procedure of WebGoat on on Windows, Mac OS X, Ubuntu

Software requirement
Create an Environment Variable JAVA_HOME
  •     Windows
  •     Ubuntu
  •     Mac OS X --> Skip this step. No need to do anything.

Download and Install Apache Tomcat Server on Windows, Mac OS X, Ubuntu
Windows
  1. Goto http://tomcat.apache.org --> Downloads --> Tomcat 8.0 --> "8.0.{xx}" (where {xx} is the latest upgrade number) --> Binary Distributions --> Core --> "ZIP" package (e.g., "apache-tomcat-8.0.{xx}.zip", about 8 MB).
  2. Create your project directory, say "d:\myProject" or "c:\myProject". UNZIP the downloaded file into your project directory. Tomcat will be unzipped into directory "d:\myProject\apache-tomcat-8.0.{xx}".
  3. For ease of use, we shall shorten and rename this directory to "d:\myProject\tomcat".  

Mac OS X
  • Goto http://tomcat.apache.org --> Download --> Tomcat 8.0 --> "8.0.{xx}" (where {xx} denotes the latest upgrade number) --> Binary distribution --> Core --> "tar.gz" package (e.g., "apache-tomcat-8.0.{xx}.tar.gz", about 8 MB)
  • To install Tomcat:
  1. Goto "~/Downloads", double-click the downloaded tarball (e.g., "apache-tomcat-8.0.{xx}.tar.gz") to expand it into a folder (e.g., "apache-tomcat-8.0.{xx}")
  2. Move the extracted folder (e.g., "apache-tomcat-8.0.{xx}") to "/Applications".
  3. For ease of use, we shall shorten and rename this folder to "tomcat".
 Configure Tomcat Server
  • Open  tomcate-users.xml  file under "Tomcat_Home\conf\"
  • Enable the Tomcat's manager by adding the highlighted lines, inside the <tomcat-users> elements:
<tomcat-users>
  <role rolename="manager-gui"/>
  <user username="manager" password="xxxx" roles="manager-gui"/>
</tomcat-users>

Copy the WebGoat.war to the Tomcat directory.:
Windows
copy webgoat-container-7.0.1.war and paste to D:\myProject\tomcat\
Ubuntu
sudo cp webgoat-container-7.0.1.war /var/lib/tomcat/webapps/
Mac OS X
sudo cp webgoat-container-7.0.1.war /Applications/tomcat/webapps/    

Start and Shutdown Tomcat Server:
Windows
1. Navigate to bin folder under tomcat directory by window Command Prompt
   Write below command to run tomcat server
       startup
   Type below command to stop tomcat server
     shutdown 
Ubuntu and Mac OS X
1. Goto to bin folder under tomcat directory using Terminal
     Write below command to run tomcat server
        sudo ./startup.sh
     Type below command to stop tomcat server
        sudo ./shutdown.sh

After starting tomcat server, Open browser and enter url like http://localhost:8080/webgoat_war_filename/ on browser address bar
Example: http://localhost:8080/webgoat-container-7.0.1/
 Log in as admin with Username is 'webgoat' and Password is 'webgoat'