Still doesn't work. :-( I will describe what I have done in turn. I downloaded the file "testlink-api-client-2.0.zip" from:
https://code.google.com/archive/p/dbfacade-testlink-rpc-api/downloads After extract archive I placed the file "testlink-api-client-2.0.jar" in directory "D:\Jenkins\testlink\" In the configuration of my job in Jenkins I marked the option "Prepare an environment for the run" and set "Properties Content" to: CLASSPATH=D:\\Jenkins\\testlink My pipeline code in Jenkins job: #!/usr/bin/env groovy import groovy.json.JsonSlurper import testlink.api.java.client.TestLinkAPIResults.* import testlink.api.java.client.TestLinkAPIClient.* node('PC-2') { ansiColor('xterm') { try { echo "CLASSPATH: " + env.CLASSPATH def DEVKEY = "1f344123b456bd9dd822a7f824c194c3" def URL= "http://TestLinkPC/lib/api/xmlrpc/v1/xmlrpc.php" def api = new TestLinkAPIClient(DEVKEY, URL) } catch(e) { String error = "${e}"; currentBuild.result = 'FAILURE' emailext body: "Log: ${env.BUILD_URL}console", recipientProviders: [[ $class: 'FirstFailingBuildSuspectsRecipientProvider'], [$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider'], [ $class: 'UpstreamComitterRecipientProvider']], subject: "Build #${env.BUILD_NUMBER} of job ${env.JOB_NAME} finished with status: ${currentBuild.currentResult}" } } } In console log I received an error: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript: 22: unable to resolve class TestLinkAPIClient @ line 22, column 18. def api = new TestLinkAPIClient(DEVKEY, URL) ^ Where is the problem? W dniu sobota, 13 kwietnia 2019 23:38:38 UTC+2 użytkownik Marogo Ytcutc napisał: > > Thank You very much for Your help! I will check it on Monday. > > W dniu sobota, 13 kwietnia 2019 21:09:40 UTC+2 użytkownik Ivan Fernandez > Calvo napisał: >> >> Put the jar file in a folder inside the classpath of the JDK used by your >> agent > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9f8c7cc0-66e5-4411-89e2-c384158d0131%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.