随笔分类 - Jenkins
摘要:import hudson.*pipeline{ agent any stages{ stage("Download code"){ steps{ script{ environment { http_proxy="xx.xx.xx.xx:xxxx" https_proxy="xx.xx.xx.xx
阅读全文
摘要:import hudson.FilePathimport hudson.model.ParametersActionimport hudson.model.FileParameterValueimport hudson.model.Executor stage("p_build"){ echo "p
阅读全文
摘要:https://stackoverflow.com/questions/38461705/checkout-jenkins-pipeline-git-scm-with-credentials withCredentials([usernamePassword(credentialsId: '<cre
阅读全文
摘要:https://blog.csdn.net/weixin_43947499/article/details/84790642 https://blog.csdn.net/weixin_43947499/article/details/84790642
阅读全文
摘要:https://www.jianshu.com/p/9c1eddec34bc https://www.jianshu.com/p/faf019786cc7
阅读全文
摘要:使用如下方式可以停掉build job: crumb=`curl -X GET http://<ip>:8080/crumbIssuer/api/json --user jenkins:ABC@123|grep -Eo 'crumb":".*",' |grep -Eo ':".*?"' | awk
阅读全文
摘要:1. 在jenkins Configure Global Security勾选CSRF Protection 2. 在浏览器输入如下网址获取 http://<username>:<password>@Jyangxuecun-m.sh.intel.com:8080/crumbIssuer/api/js
阅读全文
摘要:jenkins api http://jen-server:8080/job/<view>/api/json items对应的是一个列表,不包含正在build的job可以取到排队的task信息: "name": "GERRIT_CHANGE_NUMBER", "value": "150654" "n
阅读全文
摘要:json api: http://XXXXXXXXXXXXXXXXXXX/computer/api/json?pretty=true 参考: https://segmentfault.com/q/1010000003838869 pipeline 语法:https://jenkins.io/zh/d
阅读全文
摘要:https://blog.csdn.net/bbwangj/article/details/81203381
阅读全文
摘要:pipeline语法:https://jenkins.io/zh/doc/book/pipeline/docker/ groovy 语法:http://groovy-lang.org/syntax.html#_keywords 示例:https://www.cnblogs.com/zoujiaoji
阅读全文
浙公网安备 33010602011771号