echo ssh private key EOL (OD-2377)
Weekend opened 9 months ago

你好,我在job secert中设置了ssh 私钥,并在step中echo 这个私钥

wechat_2025-04-17_030058_424.png

产生了如下问题:

wechat_2025-04-17_025358_039.png

私钥中包含了换行,所以step执行报错了。 请问应该如何正确的echo ssh私钥呢? 我的onedev运行方式是docker,版本是11.8.6

  • Robin Shen changed title 9 months ago
    Previous Value Current Value
    echo ssh私钥 换行问题
    echo ssh private key EOL
  • Robin Shen commented 9 months ago

    你在命令行中Echo一个多行的文本也会出错。所以你要用这个密钥干什么?

  • Weekend removed comment 9 months ago
  • Weekend commented 9 months ago

    你在命令行中Echo一个多行的文本也会出错。所以你要用这个密钥干什么?

    登录服务器,运行构建的docker镜像

  • Weekend commented 9 months ago

    I solved this problem using the coding cd, so I closed it

  • Weekend changed state to 'Closed' 9 months ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-2377
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover