老李分享:持续集成学好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 ...
随机推荐
- HTTP状态码理解
100-199 用于指定客户端应相应的某些动作. 200-299 用于表示请求成功. 300-399 用于已经移动的文件并且常被包含在定位头信息中指定新的地址信息. 400-499 用于指出客户端的错 ...
- C#基础笔记1
1>>数据类型: Int double:小数 char:字符型,只能存储一个字符,并且存储的这个字符要用单引号引起来.如:'a'; string:字符串,可以储存多个字符,用双引号引起来( ...
- C语言位运算符:与、或、异或、取反、左移和右移
语言位运算符:与.或.异或.取反.左移和右移 位运算是指按二进制进行的运算.在系统软件中,常常需要处理二进制位的问题.C语言提供了6个位操作运算符.这些运算符只能用于整型操作数,即只能用于带符号或无符 ...
- WIn7下Ubuntu 14.04 安装
1. 在Windows下下载Ubuntu14.04的ISO镜像,解压 2. 打开wubi.exe,填写用户名,密码等相关信息,在这里需要注意的是,磁盘空间最好选到最大(30G),执行安装 3. 按照提 ...
- 【前端】:jQuery实例
前言: 今天2月最后一天,写一篇jQuery的几个实例,算是之前前端知识的应用.写完这篇博客会做一个登陆界面+后台管理(i try...) 一.菜单实例 最开始的界面: 点击菜单三后的界面: < ...
- itextsharp c# asp.net 生成 pdf 文件
一切的开始必须要有2个dll, 可以通过nuget 包xiazai, 关键字是itextsharp. using iTextSharp.text; using iTextSharp.text.pdf; ...
- Ansible 入门 (1) - 安装和配置
本文参考 <Ansible 自动化运维和最佳实践>,这两天刚读这本书,写写总结.主控机环境是 centos 7,被控机均是 centos 6.8 . 确保 python 版本大于 2.6 ...
- http自动跳转https小记
因近期跌代更新ios/android后,由于担心ios https从17年起限制的问题,故目前我们将http更改为https,但既然支持https,故想将服务器直接更新为https,将原http请求自 ...
- html表单 2017-03-10PM
在写表单之前补充一点:网页名以及属性的值命名都不能用中文,尽量用英文或拼音. html表单特写 1.表单格式 <form method="get/post" action=& ...
- 提高C++编译速度-------pimpl 模式& 桥接模式(转)
pimpl 模式(Private Implementation),我们常常听到诸如“不要改动你的公有接口”这样的建议,所以我们一般都会修改私有接口,但是这会导致包含该头文件的所有源文件都要重新编译,这 ...