AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1029482
Accepted
Bhuwan Bhandari
Bhuwan Bhandari
Asked: 2020-08-10 23:47:45 +0800 CST2020-08-10 23:47:45 +0800 CST 2020-08-10 23:47:45 +0800 CST

sudo 错误“需要终端或 -S 选项”

  • 772
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building in workspace /var/lib/jenkins/workspace/myapp_FrontUAT
using credential 27a4cc0a-d18c-4a8f-bfcd-788d481e12ed
> /usr/bin/git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> /usr/bin/git config remote.origin.url [email protected]:root/myapp_Front.git # timeout=10
Fetching upstream changes from [email protected]:root/myapp_Front.git
> /usr/bin/git --version # timeout=10
> git --version # 'git version 2.18.4'
using GIT_SSH to set credentials 
> /usr/bin/git fetch --tags --progress -- [email protected]:root/myapp_Front.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> /usr/bin/git rev-parse refs/remotes/origin/myapp_Develop^{commit} # timeout=10
> /usr/bin/git rev-parse refs/remotes/origin/origin/myapp_Develop^{commit} # timeout=10
Checking out Revision 30fb4ffa6003e057a053881b7f08a62bd53cb2c1 (refs/remotes/origin/myapp_Develop)
> /usr/bin/git config core.sparsecheckout # timeout=10
> /usr/bin/git checkout -f 30fb4ffa6003e057a053881b7f08a62bd53cb2c1 # timeout=10
Commit message: "update features of ghar naksa."
> /usr/bin/git rev-list --no-walk 30fb4ffa6003e057a053881b7f08a62bd53cb2c1 # timeout=10
Checking for pre-build
Executing pre-build step
Checking if email needs to be generated
No emails were triggered.
[myapp_FrontUAT] $ /bin/sh -xe /tmp/jenkins2383517590544583257.sh
+ sudo git checkout myapp_Develop

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

sudo: a terminal is required to read the password; either use the -S
option to read from standard input or configure an askpass helper
Build step 'Execute shell' marked build as failure Discard old
builds...

#1544 is removed because old than numToKeep
Checking for post-build
Performing post-build step
Checking if email needs to be generated
Email was triggered for: Always
Sending email for trigger: Always
messageContentType = text/plain; charset=UTF-8
Collecting change authors...
    build: 1647
Adding recipients from project recipient list
Analyzing: [email protected]
Looking for: [email protected]
    starting at: 0
    firstFoundIdx: 0
    firstFoundIdx-substring: [email protected]
    => found type: 0
Analyzing: [email protected]
Looking for: [email protected]
    starting at: 0
    firstFoundIdx: 0
    firstFoundIdx-substring: [email protected]
    => found type: 0
Analyzing: [email protected]
Looking for: [email protected]
    starting at: 0
    firstFoundIdx: 0
    firstFoundIdx-substring: [email protected]
    => found type: 0
Adding recipients from trigger recipient list
Setting In-Reply-To since last build was not successful
Successfully created MimeMessage
Sending email to: [email protected]
MessagingException message: failed to connect, no password specified?
Finished: FAILURE
sudo jenkins jenkins-multibranch
  • 1 1 个回答
  • 847 Views

1 个回答

  • Voted
  1. Best Answer
    Bhuwan Bhandari
    2020-08-13T09:14:56+08:002020-08-13T09:14:56+08:00

    我用“-o StrictHostKeyChecking=no”修复了它,而且不以 sudo @gerald-schneider 的身份运行 git 是个好主意

    • 1

相关问题

  • 为什么 su 到 root 而不是以 root 身份登录?

  • Firefox 执行从具有权限删除的根执行脚本失败

  • scp 后 sudo 到超级用户

  • 如何使用 sudo 在系统配置文件中添加行?

  • 为什么 sudo 命令需要很长时间才能执行?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve