老李分享:持续集成学好jenkins之内置命令
老李分享:持续集成学好jenkins之内置命令
Jenkins命令调用方式:调用Jenkins命令设置job的描述信息。
$JAVA_BIN-jar "$JENKINS_CLI_JAR" -s "$JENKINS_URL" set-build-description "${JOB_NAME}""${BUILD_NUMBER}" "$tag_name" --username "$SVN_USERNAME" --password"$SVN_PASSWORD"
如果你手头已经搭建了一台Jenkins服务器,那么你也可以访问你的Jenkins,然后通过Jenkins - Manage Jenkins - Jenkins CLI页面查看相关帮助,如下:
<a href="http://i.minus.com/jk81S4rpmGc2n.jpg" target="_blank" class="cboxElement" rel="example4" 2881"="" style="text-decoration: none; color: rgb(1, 150, 227);">
Jenkins的命令行方式:java -jar jenkins-cli.jar [-s JENKINS_URL] command [options...] [arguments...]
<Available Commands>
build:
Builds a job, and optionally waits until its completion.
cancel-quiet-down:
Cancel the effect of the "quiet-down" command.
clear-queue:
Clears the build queue
connect-node:
Reconnect to a node
copy-job:
Copies a job.
create-job:
Creates a new job by reading stdin as a configuration XML file.
delete-builds:
Deletes build record(s).
delete-job:
Deletes a job
delete-node:
Deletes a node
disable-job:
Disables a job
disconnect-node:
Disconnects from a node
dist-fork:
forks a process on a remote machine and connects to its stdin/stdout
enable-job:
Enables a job
get-job:
Dumps the job definition XML to stdout
groovy:
Executes the specified Groovy script.
groovysh:
Runs an interactive groovy shell.
help:
Lists all the available commands.
install-plugin:
Installs a plugin either from a file, an URL, or from update center.
install-tool:
Performs automatic tool installation, and print its location to stdout. Can be only called from inside a build.
keep-build:
Mark the build to keep the build forever.
list-changes:
Dumps the changelog for the specified build(s).
login:
Saves the current credential to allow future commands to run without explicit credential information.
logout:
Deletes the credential stored with the login command.
mail:
Reads stdin and sends that out as an e-mail.
offline-node:
Stop using a node for performing builds temporarily, until the next "online-node" command.
online-node:
Resume using a node for performing builds, to cancel out the earlier "offline-node" command.
quiet-down:
Quiet down Jenkins, in preparation for a restart. Don't start any builds.
reload-configuration:
Discard all the loaded data in memory and reload everything from file system. Useful when you modified config files directly on disk.
restart:
Restart Jenkins
safe-restart:
Safely restart Jenkins
safe-shutdown:
Puts Jenkins into the quiet mode, wait for existing builds to be completed, and then shut down Jenkins.
set-build-description:
Sets the description of a build.
set-build-display-name:
Sets the displayName of a build
set-build-result:
Sets the result of the current build. Works only if invoked from within a build.
shutdown:
Immediately shuts down Jenkins server
update-job:
Updates the job definition XML from stdin. The opposite of the get-job command
version:
Outputs the current version.
wait-node-offline:
Wait for a node to become offline
wait-node-online:
Wait for a node to become online
who-am-i:
Reports your credential and permissions
老李分享:持续集成学好jenkins之内置命令的更多相关文章
- 老李分享:持续集成学好jenkins之安装
老李分享:持续集成学好jenkins之安装 poptest是国内唯一一家培养测试开发工程师的培训机构,以学员能胜任自动化测试,性能测试,测试工具开发等工作为目标.如果对课程感兴趣,请大家咨询qq: ...
- 老李分享:持续集成学好jenkins之解答疑问
老李分享:持续集成学好jenkins之解答疑问 poptest(www.poptest.cn)在培训的过程中使用jenkins搭建持续集成环境,让学员真正交流持续集成到底是什么,怎么去做的. Je ...
- 老李分享:持续集成学好jenkins之Git和Maven配置
老李分享:持续集成学好jenkins之Git和Maven配置 poptest是国内唯一一家培养测试开发工程师的培训机构,以学员能胜任自动化测试,性能测试,测试工具开发等工作为目标.如果对课程感兴趣 ...
- 老李分享:持续集成学好jenkins之Git和Maven配置 1
老李分享:持续集成学好jenkins之Git和Maven配置 poptest是国内唯一一家培养测试开发工程师的培训机构,以学员能胜任自动化测试,性能测试,测试工具开发等工作为目标.如果对课程感兴趣 ...
- 老李分享:持续集成学好jenkins
老李分享:持续集成学好jenkins poptest是国内唯一一家培养测试开发工程师的培训机构,以学员能胜任自动化测试,性能测试,测试工具开发等工作为目标.poptest测试开发工程师就业培训请大 ...
- 老李分享:持续集成学好jenkins之Git和Maven配置 2
8.检查代码更新并编译 可以通过Poll SCM来设置定时检查编译功能 比如*/5 * * * * 就是每隔5分钟检查一次,如果git仓库中有更新,则执行build操作. 9.使用Maven私服加快下 ...
- 研发协同平台持续集成之Jenkins实践
导读 研发协同平台有两个核心目标,一是提高研发效率 ,二是提高研发质量,要实现这两个核心目标,实现持续集成是关键之一. 什么是持续集成 在<持续集成>一书中,对持续集成的定义如下:持续集成 ...
- 使用Gradle构建构建一个Java Web工程及持续集成环境Jenkins配置
安装Eclipse插件——Buildship 什么是Buildship? Buildship能方便我们通过Eclipse IDE创建和导入Gradle工程,同时还能执行Gradle任务. Eclips ...
- Android持续集成之Jenkins 部署
Android持续集成之Jenkins 部署 [TOC] 0x00安装 准备工作如下: Tomcat8.5下载地址 Jenkins下载链接 1 将下载的jenkins.war包放至tomcat下的we ...
随机推荐
- jxls2.3-简明教程
jxls是一个简单的.轻量级的excel导出库,使用特定的标记在excel模板文件中来定义输出格式和布局.java中成熟的excel导出工具有pol.jxl,但他们都是使用java代码的方式来导出ex ...
- Python之文件与目录操作及压缩模块(os、shutil、zipfile、tarfile)
Python中可以用于对文件和目录进行操作的内置模块包括: 模块/函数名称 功能描述 open()函数 文件读取或写入 os.path模块 文件路径操作 os模块 文件和目录简单操作 zipfile模 ...
- 酷派8702手机打开logcat
机器在出厂时将log的级别做了限制,方法是:拨号盘输入*20121220# -> 选择日志输出级别 -> 选择Java log level -> 选择LOGD即可.
- 使用hubuild,mui开发微信app—首页(一)
写在前面 本系列文章我将介绍一下从零开始利用hubuild,mui实现微信app的开发,该系列是个人学习记录,所以在每篇文章中,都是从怎么去实现开始讲解,然后再把实例中涉及知识点做一个概述. 创建一个 ...
- IOS缓存管理之YYCache使用
前言: 最近一直在致力于为公司app添加缓存功能,为了寻找一个最佳方案,这几天先做个技术预研,经过这两天的查找资料基本上确定了两个开源框架进行选择,这两个开源框架分别是:PINCache.YYCach ...
- css伪元素用法大全
本文主要讲解css伪元素的用法,有需要的朋友可以阅读此文.本文讲解的伪元素有:before,after. 什么是伪元素(Pseudo element)? 伪元素不是真正的元素,不存在与文档之中,所以j ...
- 【数据标识】iOS App下载渠道的统计需求
需求概述 我们现在有一个需求,某一个活动需要拉新所谓的拉新一般是推App下载,这个用户通过这个活动下载了App后,我们需要做到[在数据库中记录这个用户下载这个App是通过那个二维码渠道的,从效果上说, ...
- SpringMVC4+MyBatis3+SQLServer 2014 整合(包括增删改查分页)
前言 说起整合自然离开ssm,我本身并不太喜欢ORM,尤其是MyBatis,把SQL语句写在xml里,尤其是大SQL,可读性不高,出错也不容易排查. 开发环境 idea2016.SpringMVC4. ...
- C++ 11 学习1:类型自动推导 auto和decltype
Cocos 3.x 用了大量的C++ 11 的东西,所以作为一个C++忠实粉丝,有必要对C++ 11进行一个系统的学习. 使用C++11之前,一定要注意自己使用的编译器对C++11的支持情况,有些编译 ...
- 基于Asp.Net Core Mvc和EntityFramework Core 的实战入门教程系列-4
来个目录吧: 第一章-入门 第二章- Entity Framework Core Nuget包管理 第三章-创建.修改.删除.查询 第四章-排序.过滤.分页.分组 第五章-迁移,EF Core 的co ...