-
Bug
-
Resolution: Fixed
-
Critical
-
Current workflow-plugin docker image
The following script for some reason will make Jenkins go out of memory and will never complete the execution.
node { HipNotifier chip = new HipNotifier('A') echo chip.name } public class HipNotifier { private String name; public HipNotifier(String pName) { this.name = pName } String getName() { return name } }
- depends on
-
JENKINS-25550 Hard kill
-
- Resolved
-
- is duplicated by
-
JENKINS-38021 Accessing unset global variable cause master to hang
-
- Resolved
-
-
JENKINS-41412 Pipeline library with method name matching synthetic accessor crashes Jenkins
-
- Resolved
-
-
JENKINS-42170 Referencing a vars implicit property that is not set causes build to hang forever
-
- Resolved
-
- is related to
-
JENKINS-32986 hard killing a pipeline leaves the JVM CPS thread running.
-
- Open
-
- relates to
-
JENKINS-41984 StackOverflowError : Unexpected exception in CPS VM thread: CpsFlowExecution
-
- Open
-
-
JENKINS-45834 Setters for shared pipeline scripts not getting called
-
- Open
-
- links to
[JENKINS-31484] Endless loop in DefaultInvoker.getProperty when accessing field via getter/setter without @
Description |
Original:
The following script for some reason will make Jenkins go out of memory and will never complete the execution. {code:java} node { HipNotifier chip = new HipNotifier('A', 'B', ["C","D"]) echo chip.name } public class HipNotifier { private String name; private String imageUrl; private List<String> quotes; public HipNotifier(String pName, String imageUrl, List<String> pQuotes) { this.name = pName this.quotes = pQuotes this.imageUrl = imageUrl } String getName() { return name } public String getUrl() { return imageUrl; } public String getRandomQuote() { return quotes.get(new Random().nextInt(quotes.size())) } } {code} |
New:
The following script for some reason will make Jenkins go out of memory and will never complete the execution. {code:java} node { HipNotifier chip = new HipNotifier('A', 'B', ["C", "D"]) echo chip.name } public class HipNotifier { private String name; private String imageUrl; private List<String> quotes; public HipNotifier(String pName, String imageUrl, List<String> pQuotes) { this.name = pName this.quotes = pQuotes this.imageUrl = imageUrl } String getName() { return name } } {code} |
Description |
Original:
The following script for some reason will make Jenkins go out of memory and will never complete the execution. {code:java} node { HipNotifier chip = new HipNotifier('A', 'B', ["C", "D"]) echo chip.name } public class HipNotifier { private String name; private String imageUrl; private List<String> quotes; public HipNotifier(String pName, String imageUrl, List<String> pQuotes) { this.name = pName this.quotes = pQuotes this.imageUrl = imageUrl } String getName() { return name } } {code} |
New:
The following script for some reason will make Jenkins go out of memory and will never complete the execution. {code:java} node { HipNotifier chip = new HipNotifier('A') echo chip.name } public class HipNotifier { private String name; public HipNotifier(String pName) { this.name = pName } String getName() { return name } } {code} |
Labels | Original: hang outofmemoryerror | New: hang outofmemoryerror robustness |
Summary | Original: Build is going OutOfMemory | New: Flow goes into endless loop in DefaultInvoker.getProperty when accessing field via getter |
Link |
New:
This issue depends on |
I managed to reduce the script up to this, Quite strange, it looks like workflow-plugin does not like new class declarations?