在执行脚本前添加一句变量即可export BUILD_ID=XXXXX export BUILD_ID=XXXXX cd /sldata/apache-tomcat-7.0.82/bin ./jenkins.bash ./startup.sh