[JIRA] (JENKINS-61000) Storing "jenkins.model.Jenkins.get().nodes" in local variable and sleeping causes "NotSerializableException" in vSphereCloudLauncher

9 views
Skip to first unread message

alpanshin@gmail.com (JIRA)

unread,
Feb 6, 2020, 9:41:03 AM2/6/20
to jenkinsc...@googlegroups.com
Alexandr Panshin created an issue
 
Jenkins / Bug JENKINS-61000
Storing "jenkins.model.Jenkins.get().nodes" in local variable and sleeping causes "NotSerializableException" in vSphereCloudLauncher
Issue Type: Bug Bug
Assignee: vjuranek
Attachments: consoleText
Components: groovy-plugin
Created: 2020-02-06 14:40
Priority: Minor Minor
Reporter: Alexandr Panshin
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

alpanshin@gmail.com (JIRA)

unread,
Feb 6, 2020, 9:44:02 AM2/6/20
to jenkinsc...@googlegroups.com
Alexandr Panshin updated an issue
Change By: Alexandr Panshin
Environment: Jenkins 2.190.3
vSphere Plugin 2.21
This simple pipeline script causes exception (see consoleText in attachments):


{code:java}
import hudson.model.Node

pipeline {
    agent {label 'master'}
    stages {
        stage('Defect reproducing stage') {
            steps {
                script {
                    List<Node> nodes = jenkins.model.Jenkins.get().nodes;
                    sleep(5);
                }
            }
        }
    }
}

{code}

alpanshin@gmail.com (JIRA)

unread,
Feb 6, 2020, 9:45:02 AM2/6/20
to jenkinsc...@googlegroups.com
Alexandr Panshin updated an issue
This simple pipeline script causes "java.io.NotSerializableException: org.jenkinsci.plugins.vSphereCloudLauncher" exception (see consoleText in attachments):



{code:java}
import hudson.model.Node

pipeline {
    agent {label 'master'}
    stages {
        stage('Defect reproducing stage') {
            steps {
                script {
                    List<Node> nodes = jenkins.model.Jenkins.get().nodes;
                    sleep(5);
                }
            }
        }
    }
}

{code}

alpanshin@gmail.com (JIRA)

unread,
Feb 6, 2020, 10:07:04 AM2/6/20
to jenkinsc...@googlegroups.com

alpanshin@gmail.com (JIRA)

unread,
Feb 6, 2020, 10:08:03 AM2/6/20
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages