CI/CD with Jenkins — Part 3: Use Jenkins for Continuous Delivery

Configuring Automatic Build

MINUTE HOUR DATE MONTH DAY
MINUTE - Minutes in an hour, (0 to 59)
HOUR - Hour of the day, (0 to 23)
DATE - Date of the month, (1 to 31)
MONTH - Month of the year, (1 to 12)
DAY - Day of the week, (0 to 7), 0 and 7 both are Sundays
Examples.
0 20 * * * At 20:00 every day
0 4 * * 0 At 04:00 on every Sunday
0 22 * * 1-5 At 22:00 on every day-of-week from Monday through Friday
aliyun@jenkins:~/MyMavenApp$ git add .
aliyun@jenkins:~/MyMavenApp$ git commit -m "Updated index.jsp"
[master 4e5e2ce] Updated index.jsp
1 file changed, 1 insertion(+)

Triggering Builds by a Script

Other Build Methods

Continuous Delivery with Jenkins

<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
...
<Connector port="8081" protocol="HTTP/1.1"
connectionTimeout="20000"
sudo systemctl restart tomcat8
sudo systemctl enable tomcat8

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store