Tools
Used:
- JDK
1.8.0_101
- Maven
3.3.3
- Windows
10
Verify
- JDK and JAVA_HOME. Make sure
JDK is installed, and “JAVA_HOME” variable is added as Windows
environment variable.
- Apache Maven. Visit Maven
official website, download the Maven zip file, for example: apache-maven-3.3.3-bin.zip
. ...
- Add M2_HOME and MAVEN_HOME.
...
- Add To PATH. ...
- 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
More in Video
Great effort by you and your team for such a nice post about Jenkins and Pipeline. more
ReplyDelete