上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 95 下一页
  2020年11月10日
摘要: $someString = "key=MTZl&batch=1&content=nihao1052020-11-10" $md5 = New-Object -TypeName System.Security.Cryptography.MD5CryptoServiceProvider $utf8 = 阅读全文
posted @ 2020-11-10 19:38 momingliu11 阅读(1825) 评论(0) 推荐(0)
摘要: import java.security.MessageDigest def today = new Date().format("yyyy-MM-dd") def snstr = ‘a=$a&b=$b&today=$today’ def sn = MessageDigest.getInstance 阅读全文
posted @ 2020-11-10 11:23 momingliu11 阅读(1871) 评论(0) 推荐(0)
摘要: #!groovy def call(reqMode,url,reqBody){ //调用httpRequest插件 if(reqMode == 'POST'){ response = httpRequest customHeaders: [[name: 'Content-Type', value: 阅读全文
posted @ 2020-11-10 11:20 momingliu11 阅读(4989) 评论(0) 推荐(0)
摘要: import jenkins,requests,urllib jenkins_server_url = 'http://jenkins.jk.com/' user_id = 'approver' api_token = '1187e29' # api_token = 'password' job_n 阅读全文
posted @ 2020-11-10 11:11 momingliu11 阅读(754) 评论(0) 推荐(0)
  2020年9月29日
摘要: PUT iis_test #新建名为iis_test的索引DELETE iis_test #删除名为iis_test的索引GET iis_test/_mapping #查看名为iis_test的索引映射 POST iis_test/_doc #在名为iis_test的索引中插入一条数据{ "Even 阅读全文
posted @ 2020-09-29 18:59 momingliu11 阅读(409) 评论(0) 推荐(0)
  2020年9月23日
摘要: bcdedit /store "d:\remoteinstall\boot\x64uefi\default.bcd" /timeout 5 bcdedit /store "d:\remoteinstall\boot\x86uefi\default.bcd" /timeout 5 bcdedit /s 阅读全文
posted @ 2020-09-23 15:36 momingliu11 阅读(397) 评论(0) 推荐(0)
  2020年9月10日
摘要: Json String转换为Json Object Pipeline中写法如下: ec2 = '{"first_name":"John","full_name":"John Doe","last_name":"Doe"}' println ec2.getClass() //Return: class 阅读全文
posted @ 2020-09-10 15:55 momingliu11 阅读(1595) 评论(0) 推荐(0)
  2020年8月19日
摘要: 安装 build-name-setter 插件,然后使用如下: script{ wrap([$class: 'BuildUser']) { def deploylog="${BUILD_USER} use pipeline '${JOB_NAME}(${BUILD_NUMBER})' " print 阅读全文
posted @ 2020-08-19 14:05 momingliu11 阅读(2994) 评论(0) 推荐(0)
摘要: 方法一: import hudson.model.* def specificCause = currentBuild.getBuildCauses('hudson.model.Cause$UserIdCause') println "specificCause: $specificCause" / 阅读全文
posted @ 2020-08-19 11:29 momingliu11 阅读(4010) 评论(0) 推荐(1)
  2020年8月18日
摘要: 1.安装 SSH Pipeline Steps 插件 2.在凭据中添加remote server凭据,如下 3.Pipeline编写: def GetRemoteServer(ip){ def remote = [:] remote.name = ip remote.host = ip remote 阅读全文
posted @ 2020-08-18 16:13 momingliu11 阅读(7655) 评论(1) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 95 下一页