How to Install Jenkins Pipeline and simple example (Dev-Build & Deploy jobs) in Windows:

Tools Used:
  1. JDK 1.8.0_101
  2. Maven 3.3.3
  3. Windows 10
Verify
    1. JDK and JAVA_HOME. Make sure JDK is installed, and “JAVA_HOME” variable is added as Windows environment variable.
    2. Apache Maven. Visit Maven official website, download the Maven zip file, for example: apache-maven-3.3.3-bin.zip . ...
    3. Add M2_HOME and MAVEN_HOME. ...
    4. Add To PATH. ...
    5. Verification. Java, javac and mvn-version

Installing Jenkins in Windows



Activitys:

Job 1
Dev-Build

Workspace Name:
E:\workspace\WebApp\

echo "Started building"
mvn clean install
echo "Started Done"

Job2

Dev-Deploy

Workspace Name:
E:\workspace\WebApp\

copy target\WebApp.war c:\apache-tomcat-8.0.36\webapps
echo "War copied"


Jenkins Pipeline (Installing in Windows 10) with Development build and deploy into Tomcat

More in Video



1 comment:

  1. Great effort by you and your team for such a nice post about Jenkins and Pipeline. more

    ReplyDelete