Open uniquejava opened 4 years ago
commit message 以 deploy:dev 时触发build。
deploy:dev
#!/bin/bash # set -x pwd ls -lh msg=$(git log -1 --pretty=%B) echo "$msg" if [[ ! "$msg" =~ ^deploy:dev.* ]];then echo "do nothing" exit 1 fi
参考: How can I trigger Jenkins to build project by special string in comment of git commit?
commit message 以
deploy:dev
时触发build。参考: How can I trigger Jenkins to build project by special string in comment of git commit?