摘要:
//获取标准输出//第一种 //第二种 //第三种 //获取执行状态 //第一种 //第二种 //第三种 //无需返回值,仅执行shell命令 //最简单的方式 例如: 工作中需要获取shell 命令的执行状态,返回0或者非0groovy语句写法为: 如果grep命令执行没有报错,正常情况下exit 阅读全文
posted @ 2019-05-29 13:39
chester·chen
阅读(16366)
评论(0)
推荐(0)
摘要:
https://blog.csdn.net/diantun00/article/details/81075007 https://www.cnblogs.com/stulzq/p/10115589.html 阅读全文
posted @ 2019-05-29 13:35
chester·chen
阅读(366)
评论(0)
推荐(0)
摘要:
在使用https git拉取代码时,每次git pull的时候都会让输入用户名和密码 进入项目目录 命令:git config --global credential.helper store 然后会生成一个本地文件用于记录用户名和密码,这个文件我们无需关心 再次git pull一下,会让输入用户名 阅读全文
posted @ 2019-05-29 13:32
chester·chen
阅读(2285)
评论(0)
推荐(0)
摘要:
def getHost(){ def remote = [:] remote.name = 'server02' remote.host = '39.19.90' remote.user = 'root' remote.port = 22 remote.password = '#########' remote.allowAnyHosts ... 阅读全文
posted @ 2019-05-29 11:56
chester·chen
阅读(337)
评论(0)
推荐(0)