Jenkins gulp打包配置

r項目爲例,遠程地址爲new/dest目錄

#Source files   r/
#Remove prefix	r
#Remote directory	new/dest/r 
#Exec command	
cd /new
gulp dev
gulp_pid=`ps -ef | grep 'gulp' | grep -v grep |awk '{print $2}'`
echo $gulp_pid
[ -n "$gulp_pid" ] && kill -9 $gulp_pid
nohup gulp watch > /dev/null 2>&1 &

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章