Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cbi-dev] Jenkins & Xvfb

Fred,

thanks for the help and the hint. Probably, we could promote it more clearly. Here's my minimal viable definition:

pipeline {
    agent {
      kubernetes {
        label 'ui-test'
      }
    }
    tools {
        maven 'apache-maven-latest'
        jdk 'adoptopenjdk-hotspot-jdk8-latest'
    }
    stages {
        stage('Build') {
            steps {
                wrap([$class: 'Xvnc', takeScreenshot: false, useXauthority: true]) {
		    sh '''
                        mvn -f org.eclipse.swtchart.cbi/pom.xml clean install
                    '''
		}
            }
        }
    }
}

Others may use it as a template.

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Eclipse SWTChart 0.8.0 ............................. SUCCESS [  1.215 s]
[INFO] org.eclipse.swtchart 0.8.0-SNAPSHOT ................ SUCCESS [  5.438 s]
[INFO] org.eclipse.swtchart.test 0.8.0-SNAPSHOT ........... SUCCESS [ 52.433 s]
[INFO] org.eclipse.swtchart.extensions 0.8.0-SNAPSHOT ..... SUCCESS [  1.611 s]
[INFO] org.eclipse.swtchart.extensions.test 0.8.0-SNAPSHOT  SUCCESS [  8.768 s]
[INFO] org.eclipse.swtchart.export 0.8.0-SNAPSHOT ......... SUCCESS [  0.475 s]
[INFO] org.eclipse.swtchart.export.test 0.8.0-SNAPSHOT .... SUCCESS [ 10.024 s]
[INFO] org.eclipse.swtchart.feature 0.8.0-SNAPSHOT ........ SUCCESS [  0.195 s]
[INFO] org.eclipse.swtchart.updatesite 0.8.0-SNAPSHOT ..... SUCCESS [  5.479 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  03:11 min
[INFO] Finished at: 2019-07-12T04:12:43Z
[INFO] ------------------------------------------------------------------------


Best,
Philip

Am 11.07.19 um 20:19 schrieb Philip Wenig:
Jonah, Fred,

thanks for your feedback.

Trying the Xvnc option wasn't successful. Therefore, I've created a ticket to ask for Jenkins Xvfb support:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=549190


Best,
Philip

Am 11.07.19 um 18:00 schrieb Frederic Gurr:
Hi,

SWTBot is the first project that comes to my mind.
See:
https://ci.eclipse.org/swtbot/job/swtbot-gerrit
or
https://ci.eclipse.org/swtbot/job/swtbot-tycho

They don't use a Jenkinsfile, but you should be able to transfer the
configuration accordingly (hint: the pipeline syntax generator can help).

Regards,

Fred

On 11.07.19 16:57, Philip Wenig wrote:
Hi Fred,

thanks for the feedback.

Do you know, which of the projects (probably 1 or 2) actively use Xvnc?
I would then have a look at their Jenkinsfile and try it to use it for
SWTChart.


Best,
Philip

Am 11.07.19 um 16:51 schrieb Frederic Gurr:
Hi,

Most projects use the Xvnc plugin for UI tests. If there is a good
reason, why you can't use it, please open a Bugzilla issue for this.

Regards,

Fred

On 11.07.19 16:05, Philip Wenig wrote:
Hi folks,

the JIPP instance for Eclipse SWTChart runs now, but it fails, cause UI
tests are executed as part of the build.

https://ci.eclipse.org/swtchart/job/build/job/develop/

I have tested it with Xvfb in a test environment:
https://wiki.jenkins.io/display/JENKINS/Xvfb+Plugin

SWTChart UI tests are executed with Xvfb successfully even on a headless
server.

But the Xvfb plugin seems to be not available.

Is there a possibility to install it?


Best,
Philip



-- 
~~~~~~~~~~~~~~~~~~~~~~~~
OpenChrom - the open source alternative for chromatography / mass spectrometry
Dr. Philip Wenig » Founder » philip.wenig@xxxxxxxxxxxxx » http://www.openchrom.net
~~~~~~~~~~~~~~~~~~~~~~~~

Back to the top