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

Oracle 12c升级至19c后ORA-28000错误

SSH Remote Password free login

In depth study paper reading target detection (VII) Chinese English Bilingual Edition: yolov4 optimal speed and accuracy of object detection

grpc本地测试联调工具BloomRPC

Queue queue

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

使用Live Chat促進業務銷售的驚人技巧

Arbre binaire partie 1

Latex formula and table recognition

Getting user information for applet learning (getuserprofile and getUserInfo)
随机推荐
请问有国内靠谱低手续费的期货开户渠道吗?网上开户安全吗?
Ggplot2 color setting summary
Use of vim
居家办公如何管理数据中心网络基础设施?
Amazing tips for using live chat to drive business sales
编程题(持续更新)
观察者模式
NVIDIA's CVPR 2022 oral is on fire! 2D images become realistic 3D objects in seconds! Here comes the virtual jazz band!
Summary of medical image open source datasets (II)
Grpc local test joint debugging tool bloomrpc
微信小程序學習之 實現列錶渲染和條件渲染.
二叉樹第一部分
针对《VPP实现策略路由》的修正
Regular matching mobile number
如何管理海量的网络基础设施?
数组无缝滚动demo
Symbol.iterator 迭代器
[Eureka registry]
PostgreSQL DBA快速入门-通过源码编译安装
Oracle数据库监听文件配置