Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JENKINS-29136 fix NPE in getRetentionTime()
I documented the bug here: https://issues.jenkins-ci.org/browse/JENKINS-29136 this NPE was preventing jenkins workers from being deleted when they should have been. I added a defaults class that will be used when parent cloud cannot be resolved due to whatever reason.
- Loading branch information
Alexey Skorokhodov
committed
Jun 30, 2015
1 parent
20c6ca8
commit e4f8cdc
Showing
7 changed files
with
32 additions
and
8 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
jclouds-plugin/src/main/java/jenkins/plugins/jclouds/compute/CloudInstanceDefaults.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
package jenkins.plugins.jclouds.compute; | |||
|
|||
/** | |||
* Holds default values for Cloud Instances, like default retention time. | |||
*/ | |||
final class CloudInstanceDefaults { | |||
public static final int DEFAULT_INSTANCE_RETENTION_TIME_IN_MINUTES = 30; | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters