詹金斯“执行外壳”是否可以执行 SSH 命令?
Jenkins 有许多专门针对 SSH 类型命令的构建前和构建后选项,但是我有一个脚本,它既可以构建,也可以执行 SCP 和 SSH 命令。Jenkins 是否强制用户将构建脚本分解为多个步骤?
“Execute Shell”是我试图从中执行我的 SSH 命令的那个,但是我没有成功。
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /var/lib/jenkins/.ssh/identity
debug1: Trying private key: /var/lib/jenkins/.ssh/id_rsa
debug1: Trying private key: /var/lib/jenkins/.ssh/id_dsa
debug1: Next authentication method: password
debug1: read_passphrase: can't open /dev/tty: No such device or address
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
debug1: read_passphrase: can't open /dev/tty: No such device or address
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
debug1: read_passphrase: can't open /dev/tty: No such device or address
debug1: Authentications that can continue: publickey,password
debug1: No more authentication methods to try.
Permission denied (publickey,password).
SSH Access not available for build engine