修改jenkins job的changelog

2018-03-19  本文已影响366人  一只老梨花

jenkins change log

commit ********
tree ********
parent *******
author user<XXX@nokia.com> 2017-11-16 15:22:24 +0800
committer user<XXX@nokia.com> 2017-11-16 15:22:24 +0800
    test changelog1
    hahahahaha
    test make changelog
:100644 100644 a08bf856c22076cab9129e9c634dcdd9a356550a 86673c578f418ccecf963294d639975bcb1e3be1 M  XXX.py

Tips

#!/bin/bash
jenkins_host=$(echo ${JENKINS_URL} |sed -n 's#.*//\(.*\):.*#\1#p')
scp `whoami`@${jenkins_host}:${JENKINS_HOME}/config.xml .
tmp_dir=$(cat config.xml | grep "<buildsDir>" | sed -n 's#\(<.*>\)\/\(.*\)\(<.*>\)#/\2#p' ) 
build_dir=$(eval "echo $tmp_dir")
rm config.xml
echo ${build_dir}
上一篇下一篇

猜你喜欢

热点阅读