Jenkins构建后通过SSH发包报错exception message [Exec exit status not zero. Status [127]]解决方法

这篇具有很好参考价值的文章主要介绍了Jenkins构建后通过SSH发包报错exception message [Exec exit status not zero. Status [127]]解决方法。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

问题描述

 jenkins配置好项目后,使用Publish over SSH插件推送到服务器指定目录的时候报错。

Console Output报错信息:ERROR: Exception when publishing, exception message [Exec exit status not zero. Status

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  48.400 s
[INFO] Finished at: 2023-04-14T09:33:24Z
[INFO] ------------------------------------------------------------------------
SSH: Connecting from host [jenkins-6869f47d99-2fcgm]
SSH: Connecting with configuration [containerd master] ...
SSH: EXEC: completed after 201 ms
SSH: Disconnecting configuration [containerd master] ...
ERROR: Exception when publishing, exception message [Exec exit status not zero. Status [127]]
Build step 'Send build artifacts over SSH' changed build result to UNSTABLE
Finished: UNSTABLE

原因分析

[127]代表的意思是没有找到执行文件的目录,那么把执行文件配对了就能解决。

解决办法

我当前的Publish over SSH插件配置如下:

Jenkins构建后通过SSH发包报错exception message [Exec exit status not zero. Status [127]]解决方法,Jenkins,jenkins,ssh,运维

修改后的配置:

Jenkins构建后通过SSH发包报错exception message [Exec exit status not zero. Status [127]]解决方法,Jenkins,jenkins,ssh,运维

重新build之后成功!文章来源地址https://www.toymoban.com/news/detail-738531.html

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  45.924 s
[INFO] Finished at: 2023-04-14T09:47:04Z
[INFO] ------------------------------------------------------------------------
SSH: Connecting from host [jenkins-6869f47d99-2fcgm]
SSH: Connecting with configuration [containerd master] ...
SSH: EXEC: completed after 54,291 ms
SSH: Disconnecting configuration [containerd master] ...
SSH: Transferred 1 file(s)
Finished: SUCCESS

到了这里,关于Jenkins构建后通过SSH发包报错exception message [Exec exit status not zero. Status [127]]解决方法的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • Jenkins构建流水线SSH连接Git错误:Host key verification failed 报错问题

    报错信息: 无法连接仓库: Command \\\"git ls-remote -h -- git@ip:xxx/xxx.git HEAD\\\" returned status code 128: stdout: stderr: No ED25519 host key is known for ip and you have requested strict checking. Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rightsand the repository exists

    2024年03月18日
    浏览(121)
  • 【报错解决】selenium.common.exceptions.WebDriverException: Message: invalid argument

    在做Web自动化测试的实验报告的时候遇到一个报错。 运行代码: 报错: selenium.common.exceptions.WebDriverException: Message: invalid argument (Session info: chrome=113.0.5672.92) (Driver info: chromedriver=113.0.5672.63 (0e1a4471d5ae5bf128b1bd8f4d627c8cbd55f70c-refs/branch-heads/5672@{#912}),platform=Windows NT 10.0.19044 x86_64) 这

    2024年02月05日
    浏览(36)
  • Selenium 报错:selenium.common.exceptions.InvalidSelectorException: Message: invalid selector: ......

    用selenium调试的时候,有遇到这个错误: selenium.common.exceptions.InvalidSelectorException: Message: invalid selector: An invalid or illegal selector was specified 这个错误,我遇到的有三种原因: ① 定位器:CSS_SELECTOR                         方法:[@  =   ] 定位属性:class 错误原因:定位的We

    2024年02月04日
    浏览(27)
  • selenium报错解决:selenium.common.exceptions.WebDriverException: Message(已解决)

    今天使用selenium遇到报错: selenium.common.exceptions.WebDriverException: Message: Service ./windows/chromedriver.exe unexpectedly exited. Status code was: 1 报错截图:   检查了代码没有发现问题,根据报错初步判断问题是出在chromedriver的路径上面,对比之前的代码 乍一看不能发现问题,仔细对比发现是

    2024年02月11日
    浏览(39)
  • 解决selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable报错

    这个错误是由Selenium WebDriver引起的,它表示一个元素无法与之交互。 这通常意味着Selenium无法模拟用户与该元素交互的方式,可能是由于以下原因之一: 元素被隐藏了,无法与之交互。 元素被覆盖了,无法与之交互。 元素不可见,无法与之交互。 页面还没有完全加载,元素

    2024年02月14日
    浏览(31)
  • selenium.common.exceptions.InvalidSessionIdException: Message: invalid session id 报错解决方法

    原因是在使用webdriver之前调用了 close_driver() 将webdriver关闭了,则webdriver就失效了。 在使用selenium进行自动获取信息时,报错:InvalidSessionIdException: Message: invalid session id 因为我需要获取多个页面的数据,让他自动进入下一页获取信息,但是我却在让他在第一页完了后就关闭了

    2024年02月11日
    浏览(31)
  • selenium启动报错:selenium.common.exceptions.SessionNotCreatedException: Message: session not created

    错误提示: selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 96 Current browser version is 102.0.5005.63 原因: Chrome版本和ChromeDriver版本不一致,极有可能是Chrome浏览器自动升级了新版本,导致两者版本差异,运行不了。 解决

    2024年02月06日
    浏览(33)
  • 【python selenium报错】selenium.common.exceptions.WebDriverException: Message: <html> 三种解决方案!

    在运行python代码时遇到该问题解决方案三种(我是第三种才解决的,总结一句话:是代理ip的问题★★★): 一、重新安装selenium,可能是缺少某些文件 二、查看chrom的版本,在chrom驱动的官方网站中下载安装适配的版本(版本接近即可),并将其配置到系统环境下,具体步骤

    2024年02月11日
    浏览(50)
  • python 运行脚本出现报错"selenium.common.exceptions.ElementClickInterceptedException: Message: element click ...

    \\\"selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted:\\\" 这个错误通常是由于在尝试点击元素时被其他元素挡住了。这可能是由于页面布局的原因,导致元素实际上并不能被点击到。 解决方法有很多种,你可以尝试以下方法之一: 尝试使用 Selenium 的 move_

    2024年02月14日
    浏览(29)
  • bug:golang通过exec.Command()执行命令报错

    需求描述:压缩某个目录下的所有文件 在执行过程中,发现zip命令可行,但是 /usr/bin/zip test.zip * 发现无法压缩成功,程序直接报错退出,后来排查返现是golang中的exec.Command()不支持 * 通配符,但是我们可以通过下面的方式实现效果。 将 * 替换为所有的文件名及目录:

    2024年02月13日
    浏览(27)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包