简体   繁体   English

ssh site作为jenkins工作的参数

[英]ssh site as parameter of jenkins job

I use jenkins to connect towards a ssh site and do some operation. 我使用jenkins连接到ssh站点并进行一些操作。 This is possible through Publish Over SSH Plugin and it works well, but I have a lot of server and to use a ssh site I need to configure each one. 这可以通过Publish Over SSH插件实现,但它运行良好,但是我有很多服务器并且使用ssh站点我需要配置每个。 I would like to use the ip of my machine as parameter in a jenkins job, without any configuration. 我想在jenkins作业中使用我的机器的ip作为参数,没有任何配置。

Is this possible? 这可能吗?

Thanks in advance. 提前致谢。

There is no problem whatsoever to put the IP address of your machine as, say, a string parameter for your build. 将机器的IP地址设置为构建的字符串参数没有任何问题。 You may put your machine's host name as well. 您也可以放置机器的主机名。 I suppose though that I am missing something in your question. 我想虽然我在你的问题中遗漏了一些东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM