Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
roginluo
Jenkins
提交
f3da0e49
J
Jenkins
项目概览
roginluo
/
Jenkins
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
Jenkins
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f3da0e49
编写于
4月 07, 2017
作者:
J
Jesse Glick
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor review comments from @oleg-nenashev.
上级
2e7fe04d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
21 addition
and
10 deletion
+21
-10
cli/src/main/java/hudson/cli/PlainCLIProtocol.java
cli/src/main/java/hudson/cli/PlainCLIProtocol.java
+19
-9
core/src/main/resources/jenkins/CLI/WarnWhenEnabled/message.properties
.../resources/jenkins/CLI/WarnWhenEnabled/message.properties
+2
-1
未找到文件。
cli/src/main/java/hudson/cli/PlainCLIProtocol.java
浏览文件 @
f3da0e49
...
...
@@ -53,23 +53,28 @@ class PlainCLIProtocol {
/** One-byte operation to send to the other side. */
private
enum
Op
{
/** UTF-8 command name or argument. */
ARG
,
ARG
(
true
)
,
/** UTF-8 locale identifier. */
LOCALE
,
LOCALE
(
true
)
,
/** UTF-8 client encoding. */
ENCODING
,
ENCODING
(
true
)
,
/** Start running command. */
START
,
START
(
true
)
,
/** Exit code, as int. */
EXIT
,
EXIT
(
false
)
,
/** Chunk of stdin, as int length followed by bytes. */
STDIN
,
STDIN
(
true
)
,
/** EOF on stdin. */
END_STDIN
,
END_STDIN
(
true
)
,
/** Chunk of stdout. */
STDOUT
,
STDOUT
(
false
)
,
/** Chunk of stderr. */
STDERR
STDERR
(
false
);
/** True if sent from the client to the server; false if sent from the server to the client. */
final
boolean
clientSide
;
Op
(
boolean
clientSide
)
{
this
.
clientSide
=
clientSide
;
}
}
static
abstract
class
EitherSide
implements
Closeable
{
...
...
@@ -150,6 +155,9 @@ class PlainCLIProtocol {
// in case trick in CLIAction does not work
LOGGER
.
log
(
Level
.
FINE
,
null
,
x
);
handleClose
();
}
catch
(
RuntimeException
x
)
{
LOGGER
.
log
(
Level
.
WARNING
,
null
,
x
);
handleClose
();
}
}
...
...
@@ -233,6 +241,7 @@ class PlainCLIProtocol {
@Override
protected
final
boolean
handle
(
Op
op
,
int
framelen
)
throws
IOException
{
assert
Thread
.
currentThread
()
instanceof
EitherSide
.
Reader
;
assert
op
.
clientSide
;
switch
(
op
)
{
case
ARG:
onArg
(
dis
.
readUTF
());
...
...
@@ -292,6 +301,7 @@ class PlainCLIProtocol {
@Override
protected
boolean
handle
(
Op
op
,
int
framelen
)
throws
IOException
{
assert
Thread
.
currentThread
()
instanceof
EitherSide
.
Reader
;
assert
!
op
.
clientSide
;
switch
(
op
)
{
case
EXIT:
onExit
(
dis
.
readInt
());
...
...
core/src/main/resources/jenkins/CLI/WarnWhenEnabled/message.properties
浏览文件 @
f3da0e49
...
...
@@ -22,4 +22,5 @@
blurb
=
\
Allowing Jenkins CLI to work in <code>-remoting</code> mode is considered dangerous and usually unnecessary.
\
You are advised to disable this mode.
You are advised to disable this mode.
\
Please refer to the <a href="https://jenkins.io/doc/book/managing/cli/">CLI documentation</a> for details.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录