Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
FIY695
jenkins
提交
fea12f76
J
jenkins
项目概览
FIY695
/
jenkins
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jenkins
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fea12f76
编写于
8月 11, 2015
作者:
K
Kohsuke Kawaguchi
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'stable-1.609' of github.com:jenkinsci/jenkins into stable-1.609
上级
76130697
2906718f
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
28 addition
and
13 deletion
+28
-13
core/src/main/java/hudson/model/Computer.java
core/src/main/java/hudson/model/Computer.java
+12
-7
core/src/main/java/hudson/node_monitors/DiskSpaceMonitorDescriptor.java
...java/hudson/node_monitors/DiskSpaceMonitorDescriptor.java
+10
-0
core/src/main/resources/hudson/model/AbstractProject/help-label.html
...in/resources/hudson/model/AbstractProject/help-label.html
+0
-0
core/src/main/resources/hudson/model/AbstractProject/help-label_zh_TW.html
...ources/hudson/model/AbstractProject/help-label_zh_TW.html
+0
-0
core/src/main/resources/hudson/node_monitors/DiskSpaceMonitor/column.jelly
...ources/hudson/node_monitors/DiskSpaceMonitor/column.jelly
+2
-2
core/src/main/resources/hudson/node_monitors/SwapSpaceMonitor/column.jelly
...ources/hudson/node_monitors/SwapSpaceMonitor/column.jelly
+1
-1
core/src/main/resources/hudson/node_monitors/TemporarySpaceMonitor/column.jelly
...s/hudson/node_monitors/TemporarySpaceMonitor/column.jelly
+2
-2
pom.xml
pom.xml
+1
-1
未找到文件。
core/src/main/java/hudson/model/Computer.java
浏览文件 @
fea12f76
...
@@ -1159,11 +1159,11 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
...
@@ -1159,11 +1159,11 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
try
{
try
{
InetAddress
ia
=
InetAddress
.
getByName
(
address
);
InetAddress
ia
=
InetAddress
.
getByName
(
address
);
if
(!(
ia
instanceof
Inet4Address
))
{
if
(!(
ia
instanceof
Inet4Address
))
{
LOGGER
.
fine
(
address
+
" is not an IPv4 address"
);
LOGGER
.
log
(
Level
.
FINE
,
"{0} is not an IPv4 address"
,
address
);
continue
;
continue
;
}
}
if
(!
ComputerPinger
.
checkIsReachable
(
ia
,
3
))
{
if
(!
ComputerPinger
.
checkIsReachable
(
ia
,
3
))
{
LOGGER
.
fine
(
address
+
" didn't respond to ping"
);
LOGGER
.
log
(
Level
.
FINE
,
"{0} didn't respond to ping"
,
address
);
continue
;
continue
;
}
}
cachedHostName
=
ia
.
getCanonicalHostName
();
cachedHostName
=
ia
.
getCanonicalHostName
();
...
@@ -1171,7 +1171,10 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
...
@@ -1171,7 +1171,10 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
return
cachedHostName
;
return
cachedHostName
;
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
// if a given name fails to parse on this host, we get this error
// if a given name fails to parse on this host, we get this error
LOGGER
.
log
(
Level
.
FINE
,
"Failed to parse "
+
address
,
e
);
LogRecord
lr
=
new
LogRecord
(
Level
.
FINE
,
"Failed to parse {0}"
);
lr
.
setThrown
(
e
);
lr
.
setParameters
(
new
Object
[]{
address
});
LOGGER
.
log
(
lr
);
}
}
}
}
...
@@ -1195,27 +1198,29 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
...
@@ -1195,27 +1198,29 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
}
}
private
static
class
ListPossibleNames
extends
MasterToSlaveCallable
<
List
<
String
>,
IOException
>
{
private
static
class
ListPossibleNames
extends
MasterToSlaveCallable
<
List
<
String
>,
IOException
>
{
private
static
final
Logger
LOGGER
=
Logger
.
getLogger
(
ListPossibleNames
.
class
.
getName
());
public
List
<
String
>
call
()
throws
IOException
{
public
List
<
String
>
call
()
throws
IOException
{
List
<
String
>
names
=
new
ArrayList
<
String
>();
List
<
String
>
names
=
new
ArrayList
<
String
>();
Enumeration
<
NetworkInterface
>
nis
=
NetworkInterface
.
getNetworkInterfaces
();
Enumeration
<
NetworkInterface
>
nis
=
NetworkInterface
.
getNetworkInterfaces
();
while
(
nis
.
hasMoreElements
())
{
while
(
nis
.
hasMoreElements
())
{
NetworkInterface
ni
=
nis
.
nextElement
();
NetworkInterface
ni
=
nis
.
nextElement
();
LOGGER
.
fine
(
"Listing up IP addresses for "
+
ni
.
getDisplayName
());
LOGGER
.
log
(
Level
.
FINE
,
"Listing up IP addresses for {0}"
,
ni
.
getDisplayName
());
Enumeration
<
InetAddress
>
e
=
ni
.
getInetAddresses
();
Enumeration
<
InetAddress
>
e
=
ni
.
getInetAddresses
();
while
(
e
.
hasMoreElements
())
{
while
(
e
.
hasMoreElements
())
{
InetAddress
ia
=
e
.
nextElement
();
InetAddress
ia
=
e
.
nextElement
();
if
(
ia
.
isLoopbackAddress
())
{
if
(
ia
.
isLoopbackAddress
())
{
LOGGER
.
fine
(
ia
+
" is a loopback address"
);
LOGGER
.
log
(
Level
.
FINE
,
"{0} is a loopback address"
,
ia
);
continue
;
continue
;
}
}
if
(!(
ia
instanceof
Inet4Address
))
{
if
(!(
ia
instanceof
Inet4Address
))
{
LOGGER
.
fine
(
ia
+
" is not an IPv4 address"
);
LOGGER
.
log
(
Level
.
FINE
,
"{0} is not an IPv4 address"
,
ia
);
continue
;
continue
;
}
}
LOGGER
.
fine
(
ia
+
" is a viable candidate"
);
LOGGER
.
log
(
Level
.
FINE
,
"{0} is a viable candidate"
,
ia
);
names
.
add
(
ia
.
getHostAddress
());
names
.
add
(
ia
.
getHostAddress
());
}
}
}
}
...
...
core/src/main/java/hudson/node_monitors/DiskSpaceMonitorDescriptor.java
浏览文件 @
fea12f76
...
@@ -37,6 +37,8 @@ import java.math.BigDecimal;
...
@@ -37,6 +37,8 @@ import java.math.BigDecimal;
import
java.text.ParseException
;
import
java.text.ParseException
;
import
java.util.Locale
;
import
java.util.Locale
;
import
org.kohsuke.accmod.Restricted
;
import
org.kohsuke.accmod.restrictions.DoNotUse
;
import
org.kohsuke.stapler.export.ExportedBean
;
import
org.kohsuke.stapler.export.ExportedBean
;
import
org.kohsuke.stapler.export.Exported
;
import
org.kohsuke.stapler.export.Exported
;
...
@@ -81,6 +83,14 @@ public abstract class DiskSpaceMonitorDescriptor extends AbstractAsyncNodeMonito
...
@@ -81,6 +83,14 @@ public abstract class DiskSpaceMonitorDescriptor extends AbstractAsyncNodeMonito
return
path
;
return
path
;
}
}
// Needed for jelly that does not seem to be able to access properties
// named 'size' as it confuses it with built-in size method and fails
// to parse the expression expecting '()'.
@Restricted
(
DoNotUse
.
class
)
public
long
getFreeSize
()
{
return
size
;
}
/**
/**
* Gets GB left.
* Gets GB left.
*/
*/
...
...
core/src/main/resources/hudson/model/AbstractProject/help-
assignedLabelString
.html
→
core/src/main/resources/hudson/model/AbstractProject/help-
label
.html
浏览文件 @
fea12f76
文件已移动
core/src/main/resources/hudson/model/AbstractProject/help-
assignedLabelString
_zh_TW.html
→
core/src/main/resources/hudson/model/AbstractProject/help-
label
_zh_TW.html
浏览文件 @
fea12f76
文件已移动
core/src/main/resources/hudson/node_monitors/DiskSpaceMonitor/column.jelly
浏览文件 @
fea12f76
...
@@ -29,7 +29,7 @@ THE SOFTWARE.
...
@@ -29,7 +29,7 @@ THE SOFTWARE.
<td align="right" data="-1">N/A</td>
<td align="right" data="-1">N/A</td>
</j:when>
</j:when>
<j:otherwise>
<j:otherwise>
<td align="right" data="${data}"><j:out value="${data.toHtml()}"/></td>
<td align="right" data="${data
.freeSize
}"><j:out value="${data.toHtml()}"/></td>
</j:otherwise>
</j:otherwise>
</j:choose>
</j:choose>
</j:jelly>
</j:jelly>
\ No newline at end of file
core/src/main/resources/hudson/node_monitors/SwapSpaceMonitor/column.jelly
浏览文件 @
fea12f76
...
@@ -32,4 +32,4 @@ THE SOFTWARE.
...
@@ -32,4 +32,4 @@ THE SOFTWARE.
<td align="right" data="${from.toMB(data)}"><j:out value="${from.toHtml(data)}"/></td>
<td align="right" data="${from.toMB(data)}"><j:out value="${from.toHtml(data)}"/></td>
</j:otherwise>
</j:otherwise>
</j:choose>
</j:choose>
</j:jelly>
</j:jelly>
\ No newline at end of file
core/src/main/resources/hudson/node_monitors/TemporarySpaceMonitor/column.jelly
浏览文件 @
fea12f76
...
@@ -29,7 +29,7 @@ THE SOFTWARE.
...
@@ -29,7 +29,7 @@ THE SOFTWARE.
<td align="right" data="-1">N/A</td>
<td align="right" data="-1">N/A</td>
</j:when>
</j:when>
<j:otherwise>
<j:otherwise>
<td align="right" data="${data}"><j:out value="${data.toHtml()}"/></td>
<td align="right" data="${data
.freeSize
}"><j:out value="${data.toHtml()}"/></td>
</j:otherwise>
</j:otherwise>
</j:choose>
</j:choose>
</j:jelly>
</j:jelly>
\ No newline at end of file
pom.xml
浏览文件 @
fea12f76
...
@@ -176,7 +176,7 @@ THE SOFTWARE.
...
@@ -176,7 +176,7 @@ THE SOFTWARE.
<dependency>
<dependency>
<groupId>
org.jenkins-ci.main
</groupId>
<groupId>
org.jenkins-ci.main
</groupId>
<artifactId>
remoting
</artifactId>
<artifactId>
remoting
</artifactId>
<version>
2.5
0
</version>
<version>
2.5
2
</version>
</dependency>
</dependency>
<dependency>
<dependency>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录