当前位置:网站首页>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
}
边栏推荐
猜你喜欢

字节跳动-面试官: 谈下音视频同步原理,音频和视频能绝对同步吗?

Queue queue

Mise en œuvre du rendu de liste et du rendu conditionnel pour l'apprentissage des applets Wechat.

如何规范化数据中心基础设施管理流程

使用Live Chat促进业务销售的惊人技巧

记录一下MySql update会锁定哪些范围的数据

SSH Remote Password free login

latex公式及表格识别

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

英伟达这篇CVPR 2022 Oral火了!2D图像秒变逼真3D物体!虚拟爵士乐队来了!
随机推荐
How to solve multi-channel customer communication problems in independent stations? This cross-border e-commerce plug-in must be known!
Oracle viewing data file header SCN information
GIS实战应用案例100篇(十四)-ArcGIS属性连接和使用Excel的问题
grpc本地测试联调工具BloomRPC
Literature Research Report
Seekbar with text: customize progressdrawable/thumb: solve incomplete display
十大证券公司哪个佣金最低,最安全可靠?有知道的吗
JS singleton mode
20、 Processor scheduling (RR time slice rotation, mlfq multi-level feedback queue, CFS fully fair scheduler, priority reversal; multiprocessor scheduling)
2021-08-17
Array seamless scrolling demo
el-table表格的拖拽 sortablejs
如何提高网络基础设施排障效率,告别数据断档?
How to manage massive network infrastructure?
Canvas draw picture
Open Oracle server under Linux to allow remote connection
LeetCode: 137. Number II that appears only once
Summary of medical image open source datasets (II)
Grpc local test joint debugging tool bloomrpc
IDEA 无法保存设置 源根 D:XXXX在模块XXX中重复