|
@@ -21,7 +21,7 @@ def call(Map args = [:]) {
|
|
|
sh "scp -o StrictHostKeyChecking=no ${jarPath} ${remoteHost}:${remoteJar}"
|
|
sh "scp -o StrictHostKeyChecking=no ${jarPath} ${remoteHost}:${remoteJar}"
|
|
|
|
|
|
|
|
/* 4. 启动新服务 */
|
|
/* 4. 启动新服务 */
|
|
|
- sh "ssh -o StrictHostKeyChecking=no ${remoteHost} 'cd ${remotePath} && nohup java -jar ${jarName} --spring.profiles.active=${profile} > server.log 2>&1 </dev/null &'"
|
|
|
|
|
|
|
+ sh "ssh -o StrictHostKeyChecking=no ${remoteHost} 'cd ${remotePath} && nohup java -jar ${jarName} --spring.profiles.active=${profile} > server.log 2>&1 </dev/null & disown'"
|
|
|
|
|
|
|
|
PrintMes("发布成功 ${jarName}", 'green')
|
|
PrintMes("发布成功 ${jarName}", 'green')
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|