[JIRA] (JENKINS-55908) Xvfb does not work when wrap([$class: 'Xvfb']) is defined inside timestamps

5 views
Skip to first unread message

adam.gabrys@live.com (JIRA)

unread,
Feb 1, 2019, 5:22:02 AM2/1/19
to jenkinsc...@googlegroups.com
Adam Gabryś created an issue
 
Jenkins / Bug JENKINS-55908
Xvfb does not work when wrap([$class: 'Xvfb']) is defined inside timestamps
Issue Type: Bug Bug
Assignee: Steven G Brown
Attachments: Jenkins Master.html, Jenkins Slave.html, stacktrace.txt
Components: timestamper-plugin, xvfb-plugin
Created: 2019-02-01 10:21
Environment: Jenkins: 2.150.1
Xvfb: 1.1.3
timestamper: 1.8.10

See more in Jenkins Master.html and Jenkins Slave.html files
Priority: Major Major
Reporter: Adam Gabryś

Xvfb cannot connect to a machine when it is enclosed inside timestamps step or option. The pipeline throws an exception:

Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from XX.YY.ZZ.WW/XX.YY.ZZ.WW:47130
[...]
java.lang.IllegalAccessError: tried to access field hudson.remoting.Channel.executor from class org.jenkinsci.remoting.util.AnonymousClassWarnings
[...]Caused: java.io.IOException: Remote call on JNLP4-connect connection from XX.YY.ZZ.WW/XX.YY.ZZ.WW:47130 failed

I checked and the following pipelines throw exceptions:

pipeline {
    agent {
        label 'swarm'
    }
    options {
        timestamps()
    }
    stages {
        stage('Main') {
            steps {
                wrap([$class: 'Xvfb']) {
                    echo 'never reached'
                }
            }
        }
    }
}
pipeline {
    agent {
        label 'swarm'
    }
    stages {
        stage('Main') {
            steps {
                timestamps {
                    wrap([$class: 'Xvfb']) {
                        echo 'never reached'
                    }
                }
            }
        }
    }
}

and this works correctly:

pipeline {
    agent {
        label 'swarm'
    }
    stages {
        stage('Main') {
            steps {
                wrap([$class: 'Xvfb']) {
                    timestamps {
                        echo 'reached'
                    }
                }
            }
        }
    }
}
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

adam.gabrys@live.com (JIRA)

unread,
Feb 1, 2019, 5:24:02 AM2/1/19
to jenkinsc...@googlegroups.com
Adam Gabryś updated an issue
Change By: Adam Gabryś
Xvfb cannot connect to a machine when it is enclosed inside {{timestamps}} step or option. The pipeline throws an exception:
{noformat}

Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from XX.YY.ZZ.WW/XX.YY.ZZ.WW:47130
[...]
java.lang.IllegalAccessError: tried to access field hudson.remoting.Channel.executor from class org.jenkinsci.remoting.util.AnonymousClassWarnings
[...]
Caused: java.io.IOException: Remote call on JNLP4-connect connection from XX.YY.ZZ.WW/XX.YY.ZZ.WW:47130 failed
{noformat}

I checked and the following pipelines throw exceptions:
{noformat}

pipeline {
    agent {
        label 'swarm'
    }
    options {
        timestamps()
    }
    stages {
        stage('Main') {
            steps {
                wrap([$class: 'Xvfb']) {
                    echo 'never reached'
                }
            }
        }
    }
}
{noformat}
{noformat}

pipeline {
    agent {
        label 'swarm'
    }
    stages {
        stage('Main') {
            steps {
                timestamps {
                    wrap([$class: 'Xvfb']) {
                     echo 'never reached'
                    }
                }
            }
        }
    }
}
{noformat}
and this works correctly:
{noformat}

pipeline {
    agent {
        label 'swarm'
    }
    stages {
        stage('Main') {
            steps {
                wrap([$class: 'Xvfb']) {
                    timestamps {
                     echo 'reached'
                    }
                }
            }
        }
    }
}
{noformat}

me@basilcrow.com (JIRA)

unread,
Feb 26, 2020, 2:28:02 PM2/26/20
to jenkinsc...@googlegroups.com
Basil Crow assigned an issue to Unassigned
Change By: Basil Crow
Assignee: Steven G Brown
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

adam.gabrys@live.com (JIRA)

unread,
Feb 27, 2020, 4:25:02 AM2/27/20
to jenkinsc...@googlegroups.com
Adam Gabryś commented on Bug JENKINS-55908
 
Re: Xvfb does not work when wrap([$class: 'Xvfb']) is defined inside timestamps

We started using a new feature introduced in the [Timestamper|https://plugins.jenkins.io/timestamper/] 1.9 plugin: Enable for all Pipeline builds. The timestamps are printed correctly.

adam.gabrys@live.com (JIRA)

unread,
Feb 27, 2020, 4:26:03 AM2/27/20
to jenkinsc...@googlegroups.com
Adam Gabryś edited a comment on Bug JENKINS-55908
We started using a new feature introduced in the [Timestamper| [ https://plugins.jenkins.io/timestamper/] ] 1.9 plugin: {{Enable for all Pipeline builds}}. The timestamps are printed correctly.
Reply all
Reply to author
Forward
0 new messages