You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
762 B

//file:noinspection ALL
pipeline {
agent any
environment {
projectName = 'wms8'
}
stages {
stage('#检查环境') {
steps {
sh """
java -version
gradle -v
"""
}
}
stage('#编译项目') {
steps {
sh """
wget -N http://git.yvanui.com/lizhiwei/jztd-deploy/raw/master/05shengke/04wms83-prod.sh
chmod +x ./04wms83-prod.sh
./04wms83-prod.sh deploy
sleep 5s
"""
sh "JENKINS_NODE_COOKIE=dontKillMe nohup ./04wms83-prod.sh restart > /dev/null 2>&1 &"
}
}
}
}