diff --git a/changelog.html b/changelog.html
index 8256834c0f..ae9a9b45ed 100644
--- a/changelog.html
+++ b/changelog.html
@@ -61,7 +61,17 @@ Upcoming changes
-
+
+
+ -
+ Queue didn't always leave a trail for cancelled items properly
+ (issue 25314)
+
-
+ JNA update for deprecated JNA-POSIX library.
+ (issue 24527)
+
+
+
-
Bumping up JNA to 4.10. This is potentially a breaking change for plugins that depend on JNA 3.x
@@ -77,7 +87,6 @@ Upcoming changes
Existing
FileParameters should be handled as different values to avoid merging of queued builds
(issue 19017)
-
-
diff --git a/cli/pom.xml b/cli/pom.xml
index a100512fc7..94d984f719 100644
--- a/cli/pom.xml
+++ b/cli/pom.xml
@@ -5,7 +5,7 @@
pom
org.jenkins-ci.main
- 1.586-SNAPSHOT
+ 1.587-SNAPSHOT
cli
diff --git a/core/pom.xml b/core/pom.xml
index 34269ed923..cebd5cd384 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -29,7 +29,7 @@ THE SOFTWARE.
org.jenkins-ci.main
pom
- 1.586-SNAPSHOT
+ 1.587-SNAPSHOT
../pom.xml
@@ -42,7 +42,7 @@ THE SOFTWARE.
true
- 1.231
+ 1.233
2.5.6.SEC03
1.8.9
@@ -102,7 +102,7 @@ THE SOFTWARE.
org.jruby.ext.posix
jna-posix
- 1.0.3
+ 1.0.3-jenkins-1
com.github.jnr
diff --git a/core/src/main/java/hudson/FilePath.java b/core/src/main/java/hudson/FilePath.java
index 25f49ed3c3..33997c363a 100644
--- a/core/src/main/java/hudson/FilePath.java
+++ b/core/src/main/java/hudson/FilePath.java
@@ -1763,6 +1763,7 @@ public final class FilePath implements Serializable {
/**
* Reads this file from the specific offset.
+ * @since 1.586
*/
public InputStream readFromOffset(final long offset) throws IOException, InterruptedException {
if(channel ==null) {
diff --git a/core/src/main/java/hudson/model/Cause.java b/core/src/main/java/hudson/model/Cause.java
index e650be33ed..37dbcee4ca 100644
--- a/core/src/main/java/hudson/model/Cause.java
+++ b/core/src/main/java/hudson/model/Cause.java
@@ -137,7 +137,7 @@ public abstract class Cause {
}
/**
- * A build is triggered by the completion of another build (AKA upstream build.)
+ * A build is triggered by another build (AKA upstream build.)
*/
public static class UpstreamCause extends Cause {
diff --git a/core/src/main/java/hudson/model/Computer.java b/core/src/main/java/hudson/model/Computer.java
index 9712ca58d3..ba10094914 100644
--- a/core/src/main/java/hudson/model/Computer.java
+++ b/core/src/main/java/hudson/model/Computer.java
@@ -470,9 +470,14 @@ public /*transient*/ abstract class Computer extends Actionable implements Acces
* is not yet gone.
*/
public @CheckForNull Node getNode() {
- if(nodeName==null)
- return Jenkins.getInstance();
- return Jenkins.getInstance().getNode(nodeName);
+ Jenkins j = Jenkins.getInstance();
+ if (j == null) {
+ return null;
+ }
+ if (nodeName == null) {
+ return j;
+ }
+ return j.getNode(nodeName);
}
@Exported
diff --git a/core/src/main/java/hudson/model/Queue.java b/core/src/main/java/hudson/model/Queue.java
index da478515f4..3b7247d5f9 100644
--- a/core/src/main/java/hudson/model/Queue.java
+++ b/core/src/main/java/hudson/model/Queue.java
@@ -658,12 +658,7 @@ public class Queue extends ResourceController implements Saveable {
public synchronized boolean cancel(Item item) {
LOGGER.log(Level.FINE, "Cancelling {0} item#{1}", new Object[] {item.task, item.id});
- boolean r = item.cancel(this);
-
- LeftItem li = new LeftItem(item);
- li.enter(this);
-
- return r;
+ return item.cancel(this);
}
/**
@@ -1588,10 +1583,17 @@ public class Queue extends ResourceController implements Saveable {
/**
* Cancels this item, which updates {@link #future} to notify the listener, and
* also leaves the queue.
+ *
+ * @return true
+ * if the item was successfully cancelled.
*/
/*package*/ boolean cancel(Queue q) {
boolean r = leave(q);
- if (r) future.setAsCancelled();
+ if (r) {
+ future.setAsCancelled();
+ LeftItem li = new LeftItem(this);
+ li.enter(q);
+ }
return r;
}
diff --git a/core/src/main/resources/lib/hudson/failed-test.jelly b/core/src/main/resources/lib/hudson/failed-test.jelly
index 9070ad5359..dbd8c5b8e9 100644
--- a/core/src/main/resources/lib/hudson/failed-test.jelly
+++ b/core/src/main/resources/lib/hudson/failed-test.jelly
@@ -25,77 +25,7 @@ THE SOFTWARE.
- Display link to the failed test.
- @since 1.538
-
- Path to the failed test.
-
-
- Failed test object
-
+ DEPRECATED
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ${%Loading...}
-
+
diff --git a/core/src/main/resources/lib/hudson/failed-test_pt_BR.properties b/core/src/main/resources/lib/hudson/failed-test_pt_BR.properties
deleted file mode 100644
index b66bf89191..0000000000
--- a/core/src/main/resources/lib/hudson/failed-test_pt_BR.properties
+++ /dev/null
@@ -1,25 +0,0 @@
-# The MIT License
-#
-# Copyright (c) 2004-, Kohsuke Kawaguchi, Sun Microsystems, Inc., and a number of other of contributers
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-# THE SOFTWARE.
-
-Hide\ details=Ocultar detalhes
-Loading...=Carregando...
-Show\ details=Exibir detalhes
diff --git a/debian/debian/changelog b/debian/debian/changelog
index 4ac12482f1..857aa88b60 100644
--- a/debian/debian/changelog
+++ b/debian/debian/changelog
@@ -1,3 +1,9 @@
+jenkins (1.586) unstable; urgency=low
+
+ * See http://jenkins-ci.org/changelog for more details.
+
+ -- Kohsuke Kawaguchi Sun, 26 Oct 2014 20:50:22 -0700
+
jenkins (1.585) unstable; urgency=low
* See http://jenkins-ci.org/changelog for more details.
diff --git a/plugins/pom.xml b/plugins/pom.xml
index 55a6a495bf..055754734e 100644
--- a/plugins/pom.xml
+++ b/plugins/pom.xml
@@ -11,7 +11,7 @@
org.jenkins-ci.plugins
plugin
Jenkins plugin POM
- 1.586-SNAPSHOT
+ 1.587-SNAPSHOT
pom