我是新来的詹金斯。我正在尝试调用jenkins中的远程shell脚本,方法是使用'Execute shell script on remote host using ssh‘option.But,我在shell脚本中使用了read命令,但它在jenkins.Can上不起作用。谁能帮我在jenkins上获取shell脚本的用户输入。
script:
echo "hello"
read -p "Choose your option : " ch
echo "Hi"
jenkins上的输出:
Started by user anonymou
基本上,我从本地机器加载XML,然后尝试使用调用命令将其保存在远程计算机上。
我知道我可以通过UNC路径使用复制项目,但是在一些机器上需要太长时间,而调用命令更快--我已经测试过了。
但是,我觉得我把论点传错了?
我得到的错误是:
Method invocation failed because [System.String] does not contain a method named 'Save'.
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQua
我正在尝试从Jenkins节点将ssh远程放到远程linux机器中。我在Jenkins节点中创建了公钥和私钥,并将公钥复制到远程计算机中的authorized_keys。但我不能远程进入远程机器。请检查下面的日志。
/home/us-jenkins/jenkins/workspace/engineering/dex/college-dex@tmp/durable-9222db0d/script.sh: line 8: warning: here-document at line 2 delimited by end-of-file (wanted `EOF')
+ ssh -vvv *
我已经创建了用于性能测试的.jmx脚本,我尝试使用命令窗口和Jmeter工具在本地系统中使用GUI模式和非GUI模式运行这些脚本,并且使用了fine.But,我想使用GitHub在Jenkins远程运行这些脚本。
因此,我是否有可能在Jenkins中运行JMeter脚本。
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR] To see the full stack
我在jenkins中执行参数化构建来计数。包含1个文件参数的文件中的行数。它的文件位置是pqr。脚本文件名为linecount.sh,保存在远程服务器上。当我尝试使用命令sh linecount.sh filename执行它时,它在jenkins上工作得很好。但是,当我从参数中删除filename并执行与参数化构建相同的脚本时,它在控制台上显示以下错误:
Started by user Prasoon Gupta
[EnvInject] - Loading node environment variables.
Building in workspace users/Prasoon/sampl
我正尝试在Jenkins上运行一个python脚本 import csv
import time
from selenium.webdriver import DesiredCapabilities
from selenium.webdriver.chrome.options import Options
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.
我有一个Jenkins流水线作业,其中我提到了我的流水线脚本所在的repo1。现在,在我的GHE repo1中的管道脚本中,我想调用一个我保存在GHE repo2中的nodejs脚本。我怎么才能从这个在Jenkins Job中没有提到的远程repo2中调用呢?我尝试在我的管道脚本中克隆repo2,但出现错误
git clone ssh://git@github.com/Myorg/repo2.git
Cloning into 'repo2'...
Permission denied (publickey).
fatal: Could not read from remote r