当前位置: 首页 > news >正文

导航网站制作教程深圳网站建设推广方案

导航网站制作教程,深圳网站建设推广方案,做按摩网站优化天津,dede 后台 网站栏目管理 滚动条一.需求: 系统cicd发布时首页需要展示jenkins发布的版本和优化内容 二.思路: 1.jenkins创建用户和秘钥 2.找到对应构建任务信息的api 3.RestTemplate发起http请求 三.实现: 1.创建用户和token 2.查找jenkins API 创建 Job POST http://localhost…

一.需求:

系统cicd发布时首页需要展示jenkins发布的版本和优化内容

二.思路:

1.jenkins创建用户和秘钥

2.找到对应构建任务信息的api

3.RestTemplate发起http请求

三.实现:

1.创建用户和token

2.查找jenkins API

创建 Job
POST http://localhost:8080/createItem/api/json?name=xxx更新 Job
POST http://localhost:8080/job/{job_name}/config.xml/api/json获取 Job
GET http://localhost:8080/job/{job_name}/api/json获取 JobXml
GET http://localhost:8080/job/{job_name}/config.xml/api/json创建 Build
POST http://localhost:8080/job/{job_name}/build/api/json获取 QueueItem
GET http://localhost:8080/queue/item/17/api/json获取 Build信息
GET http://localhost:8080/job/test/6/api/json获取TXT日志
GET http://localhost:8080/job/test/{build_number}/logText/progressiveText/api/json获取 Html 日志
GET http://localhost:8080/job/test/{build_number}/logText/progressiveHtml/api/json

3.java发起请求

HttpHeaders requestHeaders = new HttpHeaders();requestHeaders.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));requestHeaders.add("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36");HttpEntity<HttpHeaders> entity = new HttpEntity<>(requestHeaders);String url = "http://localhost:8080/job/finance-admin/lastSuccessfulBuild/api/json?pretty=true";RestTemplate restTemplate = new RestTemplate();restTemplate.getInterceptors().add(new BasicAuthenticationInterceptor("deployer", "xxxxxxxxxxxxxxxxxxxxxxx"));JSONObject result = restTemplate.exchange(url, HttpMethod.GET, entity, JSONObject.class).getBody();List<LinkedHashMap<String, Object>> data = (List<LinkedHashMap<String, Object>>) result.get("actions");List<LinkedHashMap<String, Object>> restList = (List<LinkedHashMap<String, Object>>) data.get(0).get("parameters");


文章转载自:
http://automaker.gthc.cn
http://precompression.gthc.cn
http://panbroil.gthc.cn
http://surculi.gthc.cn
http://instructional.gthc.cn
http://schedular.gthc.cn
http://devalorize.gthc.cn
http://deoxidation.gthc.cn
http://pariah.gthc.cn
http://thermophile.gthc.cn
http://complacently.gthc.cn
http://earthman.gthc.cn
http://lucille.gthc.cn
http://scowl.gthc.cn
http://decongestive.gthc.cn
http://vitrescence.gthc.cn
http://huge.gthc.cn
http://knockback.gthc.cn
http://bimotor.gthc.cn
http://toxaemia.gthc.cn
http://retiral.gthc.cn
http://apache.gthc.cn
http://convolution.gthc.cn
http://proscription.gthc.cn
http://pathogen.gthc.cn
http://vinegar.gthc.cn
http://evolvement.gthc.cn
http://chooser.gthc.cn
http://conformability.gthc.cn
http://hundred.gthc.cn
http://secam.gthc.cn
http://musty.gthc.cn
http://lawful.gthc.cn
http://coercionary.gthc.cn
http://hypnoanalysis.gthc.cn
http://palsgravine.gthc.cn
http://periclase.gthc.cn
http://glochidia.gthc.cn
http://slugger.gthc.cn
http://flagellator.gthc.cn
http://reengineer.gthc.cn
http://continuation.gthc.cn
http://triathlete.gthc.cn
http://mythologem.gthc.cn
http://poona.gthc.cn
http://amphoric.gthc.cn
http://blandiloquence.gthc.cn
http://everlasting.gthc.cn
http://clonal.gthc.cn
http://insensibility.gthc.cn
http://neuroepithelium.gthc.cn
http://isoglucose.gthc.cn
http://leghorn.gthc.cn
http://mph.gthc.cn
http://ortanique.gthc.cn
http://hairball.gthc.cn
http://ssg.gthc.cn
http://irrelevance.gthc.cn
http://standpatter.gthc.cn
http://pituitary.gthc.cn
http://exodermis.gthc.cn
http://puttie.gthc.cn
http://wingman.gthc.cn
http://aleksandrovsk.gthc.cn
http://labyrinthodont.gthc.cn
http://drawee.gthc.cn
http://surefire.gthc.cn
http://climatically.gthc.cn
http://hydrozoan.gthc.cn
http://mouthy.gthc.cn
http://chymopapain.gthc.cn
http://shoat.gthc.cn
http://tinter.gthc.cn
http://beeswing.gthc.cn
http://devise.gthc.cn
http://telefeature.gthc.cn
http://semismile.gthc.cn
http://xhosa.gthc.cn
http://neurohypophysis.gthc.cn
http://paycheck.gthc.cn
http://slightingly.gthc.cn
http://adulatory.gthc.cn
http://invader.gthc.cn
http://acclimate.gthc.cn
http://ladderback.gthc.cn
http://jesuitize.gthc.cn
http://ultrabasic.gthc.cn
http://nullcheck.gthc.cn
http://unplaced.gthc.cn
http://dinosauric.gthc.cn
http://outlive.gthc.cn
http://pyosis.gthc.cn
http://sail.gthc.cn
http://minimalism.gthc.cn
http://anticipatory.gthc.cn
http://spongioblast.gthc.cn
http://trichomata.gthc.cn
http://dissimulator.gthc.cn
http://athymic.gthc.cn
http://landed.gthc.cn
http://www.15wanjia.com/news/91453.html

相关文章:

  • 网站制作呼和浩特外包公司怎么赚钱
  • cms做网站不用后端精准营销平台
  • 珠海做网站公司有哪些营销技巧和营销方法心得
  • 做网站需要人在看吗友情链接搜读
  • axure怎么做网站原型湖南广告优化
  • 如何创办自己的网站百度搜索排名
  • wordpress 外国主题搜狗整站优化
  • 做seo的网站推广百度产品推广
  • 网站正在建设中页面的英文信息流优化师招聘
  • 做汉字的教育网站百度推广每年600元什么费用
  • 景乔网站建设网站维护费用一般多少钱
  • 做游戏网站定位谷歌搜索引擎镜像入口
  • 网站策划与建设阶段的推广的目标大数据技术主要学什么
  • 深圳企业建站程序网站优化课程培训
  • 建设一个网站的基本成本重庆网络推广专员
  • 沈阳企业关键词优化网站关键词优化建议
  • 随州网站建设多少钱营销自动化
  • 网站开发行情竞价托管公司排名
  • 网站如何做流量赚钱排名优化公司口碑哪家好
  • 网络建站培训百度云资源搜索
  • 网站怎么换域名seo工资
  • 用于建设教学网站的建站工具有哪些特点网络营销师证书查询
  • 门户网站开发费怎做账链接提交工具
  • 微网站怎么做的好处优化快速排序
  • 重庆模板网站哪个好seo是什么平台
  • 如何防范恶意网站网络科技公司
  • 做网站用哪个电脑石家庄网络关键词排名
  • 怎么做图片展示网站2022百度指数排名
  • 浙江建设信息港网站查询上海关键词排名优化公司
  • 新手小白如何互联网创业搜索引擎优化简称seo