Re: Jenkins - link a java package to pipeline

2019-04-15 Thread Ivan Fernandez Calvo
I've suggested you run a Groovy script on your agent using the Groovy CLI, not to include your groovy code in your pipeline, if you make a load it is the same that put the code in the Jenkinsfile (more or less), -- You received this message because you are subscribed to the Google Groups "Je

Re: Jenkins - link a java package to pipeline

2019-04-15 Thread Marogo Ytcutc
I used example from this page to load groovy script from file to pipeline: https: //stackoverflow.com/questions/37800195/how-do-you-load-a-groovy-file-and-execute-it My Script.groovy file (placed in %workspace% directory): import testlink.api.java.client.TestLinkAPIClient; import testlink.api.ja

Re: Jenkins - link a java package to pipeline

2019-04-15 Thread kuisathaverat
the problem is that you are not running the code as Groovy script, you include the code in your pipeline script, it is not the same. save this as a Groovy script in your repo, something like scripts/my-testlink.groovy #!/usr/bin/env groovy import testlink.api.java.client.TestLinkAPIResults.* im

Re: Jenkins - link a java package to pipeline

2019-04-15 Thread Marogo Ytcutc
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\testlin

Re: Jenkins - link a java package to pipeline

2019-04-13 Thread Marogo Ytcutc
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

Re: Jenkins - link a java package to pipeline

2019-04-13 Thread Ivan Fernandez Calvo
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...@goog

Re: Jenkins - link a java package to pipeline

2019-04-12 Thread Marogo Ytcutc
The main problem is that Jenkins does not recognize the TestLinkAPIClient class, probably because he did not find it in the given location (testlink. api.java.client.TestLinkAPIClient.*). How to solve this problem? W dniu piątek, 12 kwietnia 2019 18:41:23 UTC+2 użytkownik Ivan Fernandez Calvo

Re: Jenkins - link a java package to pipeline

2019-04-12 Thread Ivan Fernandez Calvo
Hi, There are many reasons to not include those classes in your pipeline code I will give you a couple, one it is that you will have to allow to execute a bunch of packages related to that library this would make your Jenkins less secure see https://wiki.jenkins.io/display/JENKINS/Script+Securi

Jenkins - link a java package to pipeline

2019-04-12 Thread Marogo Ytcutc
I would like to use the TestLinkAPIClient class (java) in my pipeline Jenkins, so I need link these modules to the pipeline, and then run the code below in groovy (found on t