Jenkins 2.60.2 - testlink plugin: iterative build steps - addCustomFieldEnvironmentVariableName failed

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Jenkins 2.60.2 - testlink plugin: iterative build steps - addCustomFieldEnvironmentVariableName failed

W Jiang
Windows 10/Jenkins 2.60.2/Testlink 1.9

Testlink is able to found test cases from testlink with a few custom fields.

Create build step - iterative build steps. The custom Fields from testlink would be created as environment variables during iterative steps. but it was always gave error:

Wonder anything wrong or it's a bug?

 
java.runtime.version1.8.0_66-b18


00:00:00.002 Started by user wjddd
00:00:00.005 Building in workspace C:\Program Files (x86)\Jenkins\workspace\TestTAP
00:00:00.008 Preparing TestLink client API.
00:00:00.008 Using TestLink URL: http://10.25.111.111:80/lib/api/xmlrpc/v1/xmlrpc.php
00:00:00.008 
00:00:00.199 Found 4 automated test cases in TestLink.
00:00:00.200 
00:00:00.200 Sorting automated test cases by TestLink test plan execution order.
00:00:00.200 
00:00:00.200 Executing single Build Steps.
00:00:00.200 
00:00:00.200 Merging build environment variables with data retrieved from TestLink.
00:00:00.200 
00:00:00.202 [TestTAP] $ cmd /c call C:\Users\englab\AppData\Local\Temp\jenkins914783694878718856.bat
00:00:00.243 
00:00:00.243 C:\Program Files (x86)\Jenkins\workspace\TestTAP>set  1>"C:\Program Files (x86)\Jenkins\workspace\TestTAP\enviromentvar.txt " 
00:00:00.245 
00:00:00.245 C:\Program Files (x86)\Jenkins\workspace\TestTAP>exit 0 
00:00:00.247 Executing iterative Build Steps.
00:00:00.247 
00:00:00.247 ERROR: Build step failed with exception
00:00:00.248 java.lang.NullPointerException
00:00:00.248 	at hudson.plugins.testlink.util.TestLinkHelper.addCustomFieldEnvironmentVariableName(TestLinkHelper.java:263)
00:00:00.248 	at hudson.plugins.testlink.util.TestLinkHelper.createTestLinkEnvironmentVariables(TestLinkHelper.java:201)
00:00:00.248 	at hudson.plugins.testlink.util.TestLinkHelper.buildTestCaseEnvVars(TestLinkHelper.java:304)
00:00:00.248 	at hudson.plugins.testlink.TestLinkBuilder.executeIterativeBuildSteps(TestLinkBuilder.java:431)
00:00:00.248 	at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:249)
00:00:00.248 	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
00:00:00.248 	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:735)
00:00:00.248 	at hudson.model.Build$BuildExecution.build(Build.java:206)
00:00:00.248 	at hudson.model.Build$BuildExecution.doRun(Build.java:163)
00:00:00.248 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:490)
00:00:00.248 	at hudson.model.Run.execute(Run.java:1735)
00:00:00.248 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
00:00:00.248 	at hudson.model.ResourceController.execute(ResourceController.java:97)
00:00:00.248 	at hudson.model.Executor.run(Executor.java:405)
00:00:00.248 Build step 'Invoke TestLink' marked build as failure
00:00:00.672 Finished: FAILURE


--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/320a918c-0be4-4e83-8005-f4898ca65c91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Jenkins 2.60.2 - testlink plugin: iterative build steps - addCustomFieldEnvironmentVariableName failed

Oleg Nenashev
Please create a ticket in Jenkins JIRA to the TestLink Plugin.
Added Bruno Kinoshita (one of the maintainers) to Cc.

среда, 9 августа 2017 г., 21:59:32 UTC+2 пользователь W Jiang написал:
Windows 10/Jenkins 2.60.2/Testlink 1.9

Testlink is able to found test cases from testlink with a few custom fields.

Create build step - iterative build steps. The custom Fields from testlink would be created as environment variables during iterative steps. but it was always gave error:

Wonder anything wrong or it's a bug?

 
java.runtime.version1.8.0_66-b18


00:00:00.002 Started by user <a href="http://localhost:8080/user/wjiang" style="word-wrap:break-word;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8080%2Fuser%2Fwjiang\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHXY-wLqFX1rSrttpCEKAUs27dHBA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Flocalhost%3A8080%2Fuser%2Fwjiang\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHXY-wLqFX1rSrttpCEKAUs27dHBA&#39;;return true;">wjddd
00:00:00.005 Building in workspace C:\Program Files (x86)\Jenkins\workspace\TestTAP
00:00:00.008 Preparing TestLink client API.
00:00:00.008 Using TestLink URL: <a href="http://10.25.144.169/lib/api/xmlrpc/v1/xmlrpc.php" style="word-wrap:break-word;color:rgb(92,53,102)" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F10.25.144.169%2Flib%2Fapi%2Fxmlrpc%2Fv1%2Fxmlrpc.php\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGtwzDTh093N1YCrYPuGeSBOKrdqw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F10.25.144.169%2Flib%2Fapi%2Fxmlrpc%2Fv1%2Fxmlrpc.php\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGtwzDTh093N1YCrYPuGeSBOKrdqw&#39;;return true;">http://10.25.111.111:80/lib/api/xmlrpc/v1/xmlrpc.php
00:00:00.008 
00:00:00.199 Found 4 automated test cases in TestLink.
00:00:00.200 
00:00:00.200 Sorting automated test cases by TestLink test plan execution order.
00:00:00.200 
00:00:00.200 Executing single Build Steps.
00:00:00.200 
00:00:00.200 Merging build environment variables with data retrieved from TestLink.
00:00:00.200 
00:00:00.202 [TestTAP] $ cmd /c call C:\Users\englab\AppData\Local\Temp\jenkins914783694878718856.bat
00:00:00.243 
00:00:00.243 C:\Program Files (x86)\Jenkins\workspace\TestTAP>set  1>"C:\Program Files (x86)\Jenkins\workspace\TestTAP\enviromentvar.txt " 
00:00:00.245 
00:00:00.245 C:\Program Files (x86)\Jenkins\workspace\TestTAP>exit 0 
00:00:00.247 Executing iterative Build Steps.
00:00:00.247 
00:00:00.247 ERROR: Build step failed with exception
00:00:00.248 java.lang.NullPointerException
00:00:00.248 	at hudson.plugins.testlink.util.TestLinkHelper.addCustomFieldEnvironmentVariableName(TestLinkHelper.java:263)
00:00:00.248 	at hudson.plugins.testlink.util.TestLinkHelper.createTestLinkEnvironmentVariables(TestLinkHelper.java:201)
00:00:00.248 	at hudson.plugins.testlink.util.TestLinkHelper.buildTestCaseEnvVars(TestLinkHelper.java:304)
00:00:00.248 	at hudson.plugins.testlink.TestLinkBuilder.executeIterativeBuildSteps(TestLinkBuilder.java:431)
00:00:00.248 	at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:249)
00:00:00.248 	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
00:00:00.248 	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:735)
00:00:00.248 	at hudson.model.Build$BuildExecution.build(Build.java:206)
00:00:00.248 	at hudson.model.Build$BuildExecution.doRun(Build.java:163)
00:00:00.248 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:490)
00:00:00.248 	at hudson.model.Run.execute(Run.java:1735)
00:00:00.248 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
00:00:00.248 	at hudson.model.ResourceController.execute(ResourceController.java:97)
00:00:00.248 	at hudson.model.Executor.run(Executor.java:405)
00:00:00.248 Build step 'Invoke TestLink' marked build as failure
00:00:00.672 Finished: FAILURE


--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/de9b4fbb-53fe-486e-b5ea-421404301841%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...