当前位置:网站首页>Jenkins pipeline key for remote deployment
Jenkins pipeline key for remote deployment
2022-07-21 04:11:00 【Cloud computing security】
Jenkins edition :Jenkins 2.341
Catalog
One 、 The configuration process
1.1 Fragment generation
1、 Select..., as shown in the figure below
2、 New key information
1.2 Script configuration
After the above configuration is completed , Then we can Jenkinsfile Configuration of the , The specific configuration is shown in the figure below :
️ Be careful : Use the push method in the form of key ,sshPut
、sshCommand
And other relevant orders must be put into remote.*
Next , Otherwise, the following error will be reported :
And withCredentials.usernamePassword
The difference is ,withCredentials.usernamePassword
Can follow closely remote.*
, You can also not follow , As follows :
Two 、 Summary
For server account security ,jenkins For remote deployment, you can use withCredentials()
Method to realize password encryption , Commonly used user name / password
The way 、SSH User key pair
To achieve , There are other ways, of course , The figure below shows :
But one thing to note is , user name / password
The way and SSH User key pair
The way is Jenkinsfile There is a little difference in script structure :
SSH User key pair
The way :sshPut
、sshCommand
And other relevant orders must be followedremote.*
user name / password
The way :sshPut
、sshCommand
And other related orders can followremote.*
, You can also not follow .
thus ,Jenkins Pipeline The key remote deployment has been configured !
边栏推荐
猜你喜欢
Unity2D 自定义Scriptable Tiles的理解与使用(三)——开始着手构建一个基于Tile类的自定义tile(上)
pinctrl
TSN 802.1AS时钟同步协议测试
Don't know how to learn MySQL? It's enough to finish the 50 questions of Niuke! (Part V)
Uni app - plugin [app cloud packaging] installation failed! (the app cloud packaging plug-in installation fails when the app is packaged) solution
[Unity脚本优化] Optimizing garbage collection in Unity games
Ugui - text and texteffect
Model graduation thesis of Construction Engineering Surveying and mapping
Building space temperature distribution prediction model and temperature curve drawing graduation thesis
CORS跨域&JSONP回调&域名接管
随机推荐
Graduation thesis title of power system and automation [selected]
UML中聚合和组合的区别
unity 生命游戏简单实现
一共有n位整数,一位能被1整除,二位能被2整除,三位能被3整除,...,n位能被n整除。 求最大的满足这个条件的数字。(回溯法)
什么是渲染管道,怎么绘制3D物体
JupyterNotebook插件管理与安装
Qu'est - ce qu'un tuyau de rendu et comment dessiner un objet 3D
Pytorch realizes handwritten digit recognition | MNIST data set (fully connected neural network)
jupyter notebook 添加kernel的方法
McCabe度量方法计算程序复杂度
Ugui - text and texteffect
About the road before and after graduation
Rust安装并实现一个helloworld
uni-app - App 平台内嵌网页物理手机自带返回键失效解决方案(内嵌的 webview 网页 H5 打包后手机物理返回键无效直接退出应用了)
解读最新ECCV 2022工作:组合式扩散模型
Don't know how to learn MySQL? It's enough to finish the 50 questions of Niuke! (Part VI)
请问一下 flink1.15 flinksql kafka topic如果不提前创建提交作业就会失败
剑指 Offer II 016. 不含重复字符的最长子字符串
剑指offer专项突击版第4天
关于毕业前后的道路