码迷,mamicode.com
首页 > 移动开发 > 详细

9 jenkins - nhorizons application

时间:2019-08-13 11:50:32      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:源码   ack   name   ica   test   tomcat7   gif   ase   art   

1 General

技术图片

2 源码管理(Gitee)

技术图片

Refspec:

  +refs/heads/*:refs/remotes/origin/* +refs/pull/*/MERGE:refs/pull/*/MERGE

3 Build

技术图片

4 执行shell

技术图片
#!/bin/bash
echo "start execute shell"

cd $WORKSPACE/nhorizons-application
mvn clean install

cd $WORKSPACE/nhorizons-application/nhorizons-webapp-base
mvn clean install

cd $WORKSPACE/nhorizons-application/$appName
mvn clean package -Ptest
cp /nhorizons/application/bin/restartpts.sh $WORKSPACE/nhorizons-application/$appName/
chmod u+x restartpts.sh
./restartpts.sh
View Code

贴出里面的./restartpts.sh

技术图片
#!/bin/sh
pid=`ps aux | grep protostar | grep -v grep | awk {print $2}`
if [ "${pid}" != "" ]
then
   echo "will kill pts ,pid is ${pid}"
  `kill -9 ${pid}`
fi
echo "start run pts..."
nohup mvn clean tomcat7:run  >> /nhorizons/application/logs/pts.log &
echo "logFile:/nhorizons/application/logs/pts.log"
View Code

 

9 jenkins - nhorizons application

标签:源码   ack   name   ica   test   tomcat7   gif   ase   art   

原文地址:https://www.cnblogs.com/bloodthirsty/p/11344891.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!