`
阿尔萨斯
  • 浏览: 4186285 次
社区版块
存档分类
最新评论

获取Jenkins project build结果

 
阅读更多

当Jenkins管理的build project越来越多的时候,需要脚本收集每个project的最近一次build结果,从而集中管理,根据业务规则,决定是否重算和何时重算。

下面的命令是利用curl和jenkins支持的HTTP Basic Authenticaion来访问指定的某个project的结果。

curl http://your_jenkins:8080/job/your_job/lastBuild/api/xml --user your_user_name:your_pwd


返回的结果是xml.

同样,这个脚本也可以配置在jenkins里面,作为一个监控其他任务的项目。

分享到:
评论

相关推荐

    Jenkins 2: Up and Running

    Leverage new and existing project types in Jenkins Understand and use the new Blue Ocean graphical interface Take advantage of the capabilities of the underlying OS in your pipeline Integrate ...

    Jenkins Fundamentals

    Jenkins Fundamentals teaches you everything you need to know about installing, setting up, configuring, and integrating a Jenkins server with your project to speed up the product development life ...

    Jenkins 2--Up and Running

    Leverage new and existing project types in Jenkins Understand and use the new Blue Ocean graphical interface Take advantage of the capabilities of the underlying OS in your pipeline Integrate analysis...

    Jenkins.Continuous.Integration.Cookbook.2nd.Edition

    If you are a Java developer, a software architect, a technical project manager, a build manager, or a development or QA engineer, then this book is ideal for you. A basic understanding of the ...

    jenkins常用插件包

    Matrix Project Plugin Maven Integration OkHttp Plugin Oracle Java SE Development Kit Installer Plugin OWASP Markup Formatter Plugin PAM Authentication plugin Parameterized Trigger plugin Pipeline ...

    Jenkins管理员操作手册.docx

    介绍了Jenkins从安装、配置到构建、包含插件管理、邮件管理、系统启动和重启 Jenkins管理员操作手册 1.服务器工具安装 1.1.Jdk安装 安装软件:jdk-6u20-windows-x64,按提示安装即可。 设置环境变量: JAVA_...

    Packt.Learning.Continuous.Integration.with.Jenkins.2nd.Edition

    Readers who are already using Jenkins for Continuous Integration can learn to take their project to the next level, which is Continuous Delivery. The current edition of the book is a complete reboot ...

    Jenkins权威指南

    Ideal for developers, software architects, and project managers, Jenkins: The Definitive Guide is both a CI tutorial and a comprehensive Jenkins reference. Through its wealth of best practices and ...

    Extending Jenkins 无水印pdf 0分

    A step-by-step, practical guide to help you learn about extension points in existing plugins and how to build your own plugin Book Description Jenkins CI is the leading open source continuous ...

    Extending.Jenkins

    It is written in Java and has a wealth of plugins to support the building and testing of virtually any project. Jenkins supports multiple Software Configuration Management tools such as Git, ...

    web 自动化测试 webdirver

    最近几年自动化测试好像挺火的,去各大招聘网站上一搜,什么 自动化测试工程师,测试开发工程啊,都挺多的而且待遇也挺高!那 么回过头来,我们要考虑一下,为什么很多公司都这么重视自动化测 试呢?

    jenkinsPipeline

    在上登录到jenkins: 用户:admin 密码:123 您应该看到作业“ demo-project”,它克隆了github.com/mai13drd/demo-project,并且已经配置了peass-ci buildstep。 构建演示项目以衡量最后两次提交之间的性能差异。...

    jenkins-cloudci:Jenkins for Cloud CI

    $ oc create -f jslave-cloudci-prod-buildconfig-template.yaml $ oc create -f jenkins-cloudci-prod-persistent-template.yaml 如何更新Jenkins和Jslave配置 $ oc login https://api.ocp4.prod.psi.r

    jenkins-pnc-build-requester:用于项目Newcastle构建请求的Jenkins插件

    用于项目纽卡斯尔移交的Jenkins插件该插件有助于从社区到产品化的过渡。 它可以用于触发Newcastle项目中的相应构建。 如果与该构建相关联的构建配置不存在,它将创建一个新的构建配置。如何配置插件有全局配置和本地...

    Jenkins通过Tragger parameterized build on other projects插件实现项目之间的触发

    注意:刚开始项目名用的中文,只有选择“always trigger”才能触发下游,建议选用英文名 ...求指点:为什么会出现“You have no permission to build downstream_B”的提示,万分感谢! 作者:运维@小兵

    jenkins-android-sample:这是一个使用 jenkinsfile 构建 Android APK 的示例项目

    使用 docker-compose 可以快速的部署这个示例,由于 Android Build Tools 使用的 aapt 同时需要 32bit 和 64bit 运行环境,因此没有选择基于 Alpine 的 Jenkins 镜像。项目分为 master beta prod 三个分支,分别对应...

    jenkins:在您的 ColdFusion 和 Railo 项目中与 Jenkins 互动

    詹金斯.cfc 在您的 ColdFusion 和 Railo 项目中与 Jenkins 互动。笔记最初是为与 Jenkins 1.500 一起使用而构建的。 在 Jenkins 1.500 和 1.564 上测试。...// Build a projectjenkins.setProject("NAME_OF_JOB_YOU_WI

    jenkins-git-project-examp

    npm run build 构建生产到应用程序build文件夹。 它在生产模式下正确捆绑了React,并优化了构建以获得最佳性能。 生成被最小化,并且文件名包括哈希值。 您的应用已准备好进行部署! 有关更多信息,请参见关于的部分...

    tb-jenkins:用于为EC集群创建Docker映像的所有文件

    构建并将Jenkins Docker映像推送到GCR存储库根据需要对jenkins配置文件进行更改,然后运行以下构建过程,以便可以将新映像推送到GCR或任何其他Repo中gcloud config set project tranquility-base-imagesdocker build...

Global site tag (gtag.js) - Google Analytics