Jenkins08: modify code, submit code, push to github, build task

1. Modify

This has actually been demonstrated in the previous chapter, but we did it for troubleshooting.
insert image description here

Next, let's change the file
and change the home-cooked food in the upper left corner to Man Han Quan Banquet

cd /root/order/src/main/webapp/jsp/common
insert image description here

vi header.jsp

insert image description here

2. Submit the code

cd /root/order

git status
git add src/main/webapp/jsp/common/header.jsp

git status

git commit -m "changes header.jsp"

git push

insert image description here

3. Rebuild the task

insert image description here

4. Verification

192.168.18.130:8090

insert image description here
It was found that there was no modification, and later it was found that the push was not successful.

insert image description here
re-push

Rebuild and verify again, it will be normal as follows.

insert image description here

Guess you like

Origin blog.csdn.net/weixin_40612128/article/details/123576321
Recommended