首页 > 其他分享 >Jenkins 使用Publish over SSH远程执行命令无法停止

Jenkins 使用Publish over SSH远程执行命令无法停止

时间:2022-11-19 19:00:11浏览次数:45  
标签:执行命令 over Publish SSH Jenkins 远程

Jenkins 使用Publish over SSH, 远程执行命令时,如果执行的命令中有nohup java -jar test.jar 类似的命令,可能会导致一直在打印日志。Jenkins 无法停止,直到超时。

解决方案:在SSH Service高级里面,把Exec in pty 打开。
图片如下:

标签:执行命令,over,Publish,SSH,Jenkins,远程
From: https://www.cnblogs.com/xuhu/p/16906765.html

相关文章

  • 前端011-hover
    <!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><title>hover</title><style>.menu{width:100px;background......
  • 前端010-overfloat
    <!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"><title>overfloat</title></head><bodystyle="width:980px;margin:0auto;"><h3>overflow:......
  • shell expect免密函数块sftp、scp、ssh
    一、expect编写函数1、变量设置#!/bin/bash################remoteinfomation############remoteuser=zhangsanremotepass=123456remoteport=22remoteip=ip.txtremoteconfi......
  • SSH利用私钥登录时一个简单错误的解决过程
    SSH利用私钥登录时一个简单错误的解决过程问题描述在一次渗透测试过程中,利用linpeas.sh脚本扫描有无本地提权漏洞,发现了目标靶机有SSH私钥,并且又相应的权限读取,因此从lin......
  • Spring官方文档——1.概述(Overview)
    本文档基于SpringFramework5.3.24https://docs.spring.io/spring-framework/docs/5.3.24/reference/html/Overviewhistory,designphilosophy,feedback,gettingst......
  • Terminus--一款跨平台的SSH client
    之前申请了GitHubEducation,解锁了Copilot,使用体验很好,这次发现了Terminus,对比xshell等要好用不少,更为关键的是能很好地支持移动端,同时支持SFTP传输文件,并且配置都是云同步......
  • [Typescript] noImplicitOverride
    Let'ssayyouextendsfromabaseclass,youintenttooverrideamethodinbaseclassclassBaseCmp{showCmp(){}hideCmp(){}helperMethod(){}}cla......
  • git clone 指定 ssh-key 文件
    环境&软件macOS问题gitclone不是默认ssh-key,无法克隆解决方法用ssh-add命令将对应的私钥加入到缓存//ssh-add自定义名称//例子ssh-addid_ed255......
  • 服务器之间建立互信,免密登录SSH
    生成SSHKEY[root@kafaka3~]#cd/root/.ssh[[email protected]]#pwd/root/.ssh[[email protected]]#ssh-keygen #生成秘钥Generatingpublic/privatersakeypair......
  • Variable @primary-color-hover is undefined
    antd安装启动后报错Variable@primary-color-hoverisundefined报错前package.json中依赖版本信息:"dependencies":{..."@ant-design/pro-form":"^1.15.1",......