#!/usr/bin/env groovy
import testlink.api.java.client.TestLinkAPIResults.*
import testlink.api.java.client.TestLinkAPIClient.*
def DEVKEY = "1f123453b123bd8dd811a7f824c194d0"
def URL = "http://PC4/lib/api/xmlrpc/v1/xmlrpc.php"
def api = new TestLinkAPIClient(DEVKEY, URL)
TestLinkAPIResults projects = api.getProjects()
api.createTestProject(...)
CLASSPATH=D:\\Jenkins\\testlink
#!/usr/bin/env groovyimport groovy.json.JsonSlurperimport 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 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}" } }}org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:WorkflowScript: 22: unable to resolve class TestLinkAPIClient @ line 22, column 18. def api = new TestLinkAPIClient(DEVKEY, URL) ^#!/usr/bin/env groovy
import testlink.api.java.client.TestLinkAPIResults.*
import testlink.api.java.client.TestLinkAPIClient.*
def DEVKEY = "1f123453b123bd8dd811a7f824c194d0"
def URL = "http://PC4/lib/api/xmlrpc/v1/xmlrpc.php"
def api = new TestLinkAPIClient(DEVKEY, URL)
TestLinkAPIResults projects = api.getProjects()
api.createTestProject(...)--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/70qz8g46LpQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@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.
import testlink.api.java.client.TestLinkAPIClient;import testlink.api.java.client.TestLinkAPIException;import testlink.api.java.client.TestLinkAPIResults; def exampleMethod() { println("exampleMethod message");
def DEVKEY = "1f344123b456bd9dd822a7f824c194c3"; TestLinkAPIClient api = new TestLinkAPIClient(DEVKEY, URL); }
def otherExampleMethod() { println("otherExampleMethod message"); }return this def rootDir = pwd()
println("Current Directory: " + rootDir) def example = load "${rootDir}\\Script.groovy"
example.exampleMethod() example.otherExampleMethod() def DEVKEY = "1f344123b456bd9dd822a7f824c194c3"; TestLinkAPIClient api = new TestLinkAPIClient(DEVKEY, URL);To unsubscribe from this group and all its topics, send an email to jenkins...@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.