当前位置:网站首页>Groovy obtains Jenkins credentials through withcredentials
Groovy obtains Jenkins credentials through withcredentials
2022-06-24 09:58:00 【Operation and maintenance @ small soldier】
One 、 Account and password credentials
Create credentials



Script
#!groovy
withCredentials([usernamePassword(credentialsId: 'NODE',usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]){
def password = URLEncoder.encode(PASSWORD, "UTF-8") // When password is used in URL In the middle of the day , Coding is also required . Such as git clone
println USERNAME
println password
}
边栏推荐
- Talking about the knowledge of digital transformation
- Use of vim
- PTA monkey chooses King (Joseph Ring problem)
- 如何规范化数据中心基础设施管理流程
- Ggplot2 color setting summary
- 算法---矩阵中战斗力最弱的 K 行(Kotlin)
- 【自定义Endpoint 及实现原理】
- 微信小程序學習之 實現列錶渲染和條件渲染.
- 数组无缝滚动demo
- How to improve the efficiency of network infrastructure troubleshooting and bid farewell to data blackouts?
猜你喜欢

latex公式及表格识别

How to standardize data center infrastructure management process

411-栈和队列(20. 有效的括号、1047. 删除字符串中的所有相邻重复项、150. 逆波兰表达式求值、239. 滑动窗口最大值、347. 前 K 个高频元素)

2021-08-17

如何解决独立站多渠道客户沟通难题?这款跨境电商插件一定要知道!

队列Queue

Amazing tips for using live chat to drive business sales

JS singleton mode

nVisual数字基础设施运营管理软件平台

操作符详解
随机推荐
How to locate lock waiting in Dameng database
415-二叉树(144. 二叉树的前序遍历、145. 二叉树的后序遍历、94. 二叉树的中序遍历)
买的长期理财产品,可以转短吗?
Producer / consumer model
414-二叉树的递归遍历
Basic operations on binary tree
Tnsnames Ora file configuration
Conseils étonnants pour promouvoir les ventes d'entreprise avec le chat en direct
SQL-统计连续N天登陆的用户
Use of vim
Observer mode
Servlet fast foundation building
How to solve multi-channel customer communication problems in independent stations? This cross-border e-commerce plug-in must be known!
Wechat applet learning to achieve list rendering and conditional rendering
Operator details
Honeypot 2 hfish, ehoney
针对《VPP实现策略路由》的修正
使用Live Chat促进业务销售的惊人技巧
如何解决独立站多渠道客户沟通难题?这款跨境电商插件一定要知道!
[custom endpoint and implementation principle]