Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53052

vncrecorder incompatible with pipeline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • vncrecorder-plugin
    • None
    • Jenkins ver. 2.89.3
      VncRecorder Plugin 1.25

      Is there any chance to make VncRecorder Plugin compatible to be usable in Jenkinsfiles?

      My current try just from reading the source code was to use a wrapper as follows:

       

       wrap([[$class:'VncRecorderBuildWrapper', vncServ:'localhost', vncPasswdFilePath:'/usr/bin/vncpasswd', outFileName:'$PWD/target/recordings/eclipse-ui-tests', setDisplay:"$DISPLAY", removeIfSuccessful:true, failJobIfFailed:false]]) {
        sh "mvn -s ${MAVEN_SETTINGS} integration-test -U"    
      }

       

      This unfortunately did not work out as VncRecorderBuildWrapper does not seem to be registered as a Wrapper:

       

      Caused: java.lang.IllegalArgumentException: Could not instantiate {delegate=[{$class=VncRecorderBuildWrapper, vncServ=localhost, vncPasswdFilePath=/usr/bin/vncpasswd, outFileName=$PWD/target/recordings/eclipse-ui-tests, setDisplay=:49, removeIfSuccessful=true, failJobIfFailed=false}]} for CoreWrapperStep(delegate: SimpleBuildWrapper{AntWrapper(installation?: String, jdk?: String) | ConfigFileBuildWrapper(managedFiles: ManagedFile(fileId: String, replaceTokens?: boolean, targetLocation?: String, variable?: String)[]) | NodeJSBuildWrapper(nodeJSInstallationName: String, configId?: String) | SonarBuildWrapper(installationName: String) | TimestamperBuildWrapper() | Xvnc(takeScreenshot: boolean, useXauthority: boolean)})

            tbaum Dimitri Tenenbaum
            maybee Malte Brunnlieb
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: