jenkins publish over ssh配置文件特点
2016-03-24 15:50
323 查看
jenkins插件publish over ssh的配置文件特点:
1,如果没有配置任何的host,则使用默认<commonConfig>
2,如果配置了一个host,则把默认配置放在这个host的配置中
3,如果配置大于一个的host,则从二个起,引用第一个host中的默认配置
ps:此处的默认配置为:无密码登录的私钥位置(自动化部署的测试研发环境)
因为把密钥复制到了jenkins的根目录下,所以这里不用写绝对路径,或者复制key的内容
只配置默认私钥位置:
配置了一个host的配置文件形式:
配置了两个host的配置文件形式:
1,如果没有配置任何的host,则使用默认<commonConfig>
2,如果配置了一个host,则把默认配置放在这个host的配置中
3,如果配置大于一个的host,则从二个起,引用第一个host中的默认配置
ps:此处的默认配置为:无密码登录的私钥位置(自动化部署的测试研发环境)
因为把密钥复制到了jenkins的根目录下,所以这里不用写绝对路径,或者复制key的内容
只配置默认私钥位置:
<?xml version='1.0' encoding='UTF-8'?> <jenkins.plugins.publish__over__ssh.BapSshPublisherPlugin_-Descriptor plugin="publish-over-ssh@1.13"> <hostConfigurations/> <commonConfig> <secretPassphrase>K52tSMwYbmSU0HYqADRewg==</secretPassphrase> <key></key> <keyPath>id_rsa</keyPath> <disableAllExec>false</disableAllExec> </commonConfig> <defaults class="jenkins.plugins.publish_over_ssh.options.SshPluginDefaults"/> </jenkins.plugins.publish__over__ssh.BapSshPublisherPlugin_-Descriptor>
配置了一个host的配置文件形式:
<?xml version='1.0' encoding='UTF-8'?> <jenkins.plugins.publish__over__ssh.BapSshPublisherPlugin_-Descriptor plugin="publish-over-ssh@1.13"> <hostConfigurations> <jenkins.plugins.publish__over__ssh.BapSshHostConfiguration> <name>192.168.100.227</name> <hostname>192.168.100.227</hostname> <username>root</username> <secretPassword>K52tSMwYbmSU0HYqADRewg==</secretPassword> <remoteRootDir></remoteRootDir> <port>22</port> <commonConfig class="jenkins.plugins.publish_over_ssh.BapSshCommonConfiguration"> <secretPassphrase>K52tSMwYbmSU0HYqADRewg==</secretPassphrase> <key></key> <keyPath>id_rsa</keyPath> <disableAllExec>false</disableAllExec> </commonConfig> <timeout>300000</timeout> <overrideKey>false</overrideKey> <disableExec>false</disableExec> <keyInfo> <secretPassphrase>K52tSMwYbmSU0HYqADRewg==</secretPassphrase> <key></key> <keyPath></keyPath> </keyInfo> </jenkins.plugins.publish__over__ssh.BapSshHostConfiguration> </hostConfigurations> <commonConfig reference="../hostConfigurations/jenkins.plugins.publish__over__ssh.BapSshHostConfiguration/commonConfig"/> <defaults class="jenkins.plugins.publish_over_ssh.options.SshPluginDefaults"/> </jenkins.plugins.publish__over__ssh.BapSshPublisherPlugin_-Descriptor>
配置了两个host的配置文件形式:
<?xml version='1.0' encoding='UTF-8'?> <jenkins.plugins.publish__over__ssh.BapSshPublisherPlugin_-Descriptor plugin="publish-over-ssh@1.13"> <hostConfigurations> <jenkins.plugins.publish__over__ssh.BapSshHostConfiguration> <name>192.168.100.227</name> <hostname>192.168.100.227</hostname> <username>root</username> <secretPassword>K52tSMwYbmSU0HYqADRewg==</secretPassword> <remoteRootDir></remoteRootDir> <port>22</port> <commonConfig class="jenkins.plugins.publish_over_ssh.BapSshCommonConfiguration"> <secretPassphrase>K52tSMwYbmSU0HYqADRewg==</secretPassphrase> <key></key> <keyPath>id_rsa</keyPath> <disableAllExec>false</disableAllExec> </commonConfig> <timeout>300000</timeout> <overrideKey>false</overrideKey> <disableExec>false</disableExec> <keyInfo> <secretPassphrase>K52tSMwYbmSU0HYqADRewg==</secretPassphrase> <key></key> <keyPath></keyPath> </keyInfo> </jenkins.plugins.publish__over__ssh.BapSshHostConfiguration> <jenkins.plugins.publish__over__ssh.BapSshHostConfiguration> <name>192.168.104.157</name> <hostname>192.168.104.157</hostname> <username>root</username> <secretPassword>K52tSMwYbmSU0HYqADRewg==</secretPassword> <remoteRootDir></remoteRootDir> <port>22</port> <commonConfig class="jenkins.plugins.publish_over_ssh.BapSshCommonConfiguration" reference="../../jenkins.plugins.publish__over__ssh.BapSshHostConfiguration/commonConfig"/> <timeout>300000</timeout> <overrideKey>false</overrideKey> <disableExec>false</disableExec> <keyInfo> <secretPassphrase>K52tSMwYbmSU0HYqADRewg==</secretPassphrase> <key></key> <keyPath></keyPath> </keyInfo> </jenkins.plugins.publish__over__ssh.BapSshHostConfiguration> </hostConfigurations> <commonConfig reference="../hostConfigurations/jenkins.plugins.publish__over__ssh.BapSshHostConfiguration/commonConfig"/> <defaults class="jenkins.plugins.publish_over_ssh.options.SshPluginDefaults"/> </jenkins.plugins.publish__over__ssh.BapSshPublisherPlugin_-Descriptor>
相关文章推荐
- 数据结构java语言实现之栈及其应用
- navigationcontroller的手势滑动返回
- 对理想团队模式构建的设想以及软件流程的理解
- 关于结对编程的感想
- 几个AAA游戏中的shadow map处理
- c++第1次实验-1-求并联电阻
- CentOS6.6修改主机名和网络信息
- c# mysql and sqlserver数据库连接字符串
- Java 和Oracle的数据类型
- Centos6.5基于gitosis的Git服务器的搭建
- war包太大,无法成功部署到tomcat服务器
- keyup()
- 欢迎使用CSDN-markdown编辑器
- 3.ViewFlipper的使用(上下翻滚轮播效果)
- 数据库范式——通俗易懂
- DP_硬币问题
- 设置带滚动条的TextView
- JS 实用技巧总结
- 有关IT行业模仿案例及自己的评价与解析:
- Java 后台sql注入