-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Ubuntu 12.04/Jenkins 2.60.2/Testlink 1.9.14
Testlink is able to run if no adding action in Iterative Test Build Steps. If I add any kind of action, even just execute shell, the build will failed with below error msg.
Started by user zzz
Building in workspace /home/jenkins/jenkins/workspace/test
Preparing TestLink client API.
Using TestLink URL: http://10.0.0.2/testlink/lib/api/xmlrpc/v1/xmlrpc.php
Found 6 automated test cases in TestLink.
Sorting automated test cases by TestLink test plan execution order.
Executing single Build Steps.
Merging build environment variables with data retrieved from TestLink.
[test] $ /bin/bash -xe /tmp/jenkins7699011295981967051.sh
+ rm result.xml
+ echo executing test plan test_plan, part of jenkins_test project
executing test plan test_plan, part of jenkins_test project
+ pwd
/home/jenkins/jenkins/workspace/test
+ cp /home/jenkins/pytest/result.xml ./
+ echo Running test
Running test
Executing iterative Build Steps.
ERROR: Build step failed with exception
java.lang.NullPointerException
at hudson.plugins.testlink.util.TestLinkHelper.addCustomFieldEnvironmentVariableName(TestLinkHelper.java:263)
at hudson.plugins.testlink.util.TestLinkHelper.createTestLinkEnvironmentVariables(TestLinkHelper.java:201)
at hudson.plugins.testlink.util.TestLinkHelper.buildTestCaseEnvVars(TestLinkHelper.java:304)
at hudson.plugins.testlink.TestLinkBuilder.executeIterativeBuildSteps(TestLinkBuilder.java:431)
at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:249)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:735)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:490)
at hudson.model.Run.execute(Run.java:1735)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:405)
Build step 'Invoke TestLink' marked build as failure
Finished: FAILURE
[JENKINS-46343] testlink plugin: iterative build steps - add action failed
Description |
Original:
Testlink is able to run if no adding action in Iterative Test Build Steps. If I add any kind of action, even just execute shell, the build will failed with below error msg. *18:18:21* Building in workspace /home/jenkins/jenkins/workspace/test*18:18:21* Preparing TestLink client API.*18:18:21* Using TestLink URL: [http://10.0.0.2/testlink/lib/api/xmlrpc/v1/xmlrpc.php|http://avalon.senao.com/testlink/lib/api/xmlrpc/v1/xmlrpc.php] *18:18:21* *18:18:23* Found 6 automated test cases in TestLink.*18:18:23* *18:18:23* Sorting automated test cases by TestLink test plan execution order.*18:18:23* *18:18:23* Executing single Build Steps.*18:18:23* *18:18:23* Merging build environment variables with data retrieved from TestLink.*18:18:23* *18:18:23* [test] $ /bin/bash -xe /tmp/jenkins7699011295981967051.sh*18:18:23* + rm result.xml*18:18:23* + echo executing test plan test_plan, part of jenkins_test project*18:18:23* executing test plan test_plan, part of jenkins_test project*18:18:23* + pwd*18:18:23* /home/jenkins/jenkins/workspace/test*18:18:23* + cp /home/jenkins/pytest/result.xml ./*18:18:23* + echo Running test*18:18:23* Running test*18:18:23* Executing iterative Build Steps.*18:18:23* *18:18:23* ERROR: Build step failed with exception*18:18:23* java.lang.NullPointerException*18:18:23* at hudson.plugins.testlink.util.TestLinkHelper.addCustomFieldEnvironmentVariableName(TestLinkHelper.java:263)*18:18:23* at hudson.plugins.testlink.util.TestLinkHelper.createTestLinkEnvironmentVariables(TestLinkHelper.java:201)*18:18:23* at hudson.plugins.testlink.util.TestLinkHelper.buildTestCaseEnvVars(TestLinkHelper.java:304)*18:18:23* at hudson.plugins.testlink.TestLinkBuilder.executeIterativeBuildSteps(TestLinkBuilder.java:431)*18:18:23* at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:249)*18:18:23* at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)*18:18:23* at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:735)*18:18:23* at hudson.model.Build$BuildExecution.build(Build.java:206)*18:18:23* at hudson.model.Build$BuildExecution.doRun(Build.java:163)*18:18:23* at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:490)*18:18:23* at hudson.model.Run.execute(Run.java:1735)*18:18:23* at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)*18:18:23* at hudson.model.ResourceController.execute(ResourceController.java:97)*18:18:23* at hudson.model.Executor.run(Executor.java:405)*18:18:23* Build step 'Invoke TestLink' marked build as failure*18:18:23* Finished: FAILURE |
New:
Testlink is able to run if no adding action in Iterative Test Build Steps. If I add any kind of action, even just execute shell, the build will failed with below error msg. Started by user tony Building in workspace /home/jenkins/jenkins/workspace/test Preparing TestLink client API. Using TestLink URL: http://avalon.senao.com/testlink/lib/api/xmlrpc/v1/xmlrpc.php Found 6 automated test cases in TestLink. Sorting automated test cases by TestLink test plan execution order. Executing single Build Steps. Merging build environment variables with data retrieved from TestLink. [test] $ /bin/bash -xe /tmp/jenkins7699011295981967051.sh + rm result.xml + echo executing test plan test_plan, part of jenkins_test project executing test plan test_plan, part of jenkins_test project + pwd /home/jenkins/jenkins/workspace/test + cp /home/jenkins/pytest/result.xml ./ + echo Running test Running test Executing iterative Build Steps. ERROR: Build step failed with exception java.lang.NullPointerException at hudson.plugins.testlink.util.TestLinkHelper.addCustomFieldEnvironmentVariableName(TestLinkHelper.java:263) at hudson.plugins.testlink.util.TestLinkHelper.createTestLinkEnvironmentVariables(TestLinkHelper.java:201) at hudson.plugins.testlink.util.TestLinkHelper.buildTestCaseEnvVars(TestLinkHelper.java:304) at hudson.plugins.testlink.TestLinkBuilder.executeIterativeBuildSteps(TestLinkBuilder.java:431) at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:249) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:735) at hudson.model.Build$BuildExecution.build(Build.java:206) at hudson.model.Build$BuildExecution.doRun(Build.java:163) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:490) at hudson.model.Run.execute(Run.java:1735) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:405) Build step 'Invoke TestLink' marked build as failure Finished: FAILURE |
Description |
Original:
Testlink is able to run if no adding action in Iterative Test Build Steps. If I add any kind of action, even just execute shell, the build will failed with below error msg. Started by user tony Building in workspace /home/jenkins/jenkins/workspace/test Preparing TestLink client API. Using TestLink URL: http://avalon.senao.com/testlink/lib/api/xmlrpc/v1/xmlrpc.php Found 6 automated test cases in TestLink. Sorting automated test cases by TestLink test plan execution order. Executing single Build Steps. Merging build environment variables with data retrieved from TestLink. [test] $ /bin/bash -xe /tmp/jenkins7699011295981967051.sh + rm result.xml + echo executing test plan test_plan, part of jenkins_test project executing test plan test_plan, part of jenkins_test project + pwd /home/jenkins/jenkins/workspace/test + cp /home/jenkins/pytest/result.xml ./ + echo Running test Running test Executing iterative Build Steps. ERROR: Build step failed with exception java.lang.NullPointerException at hudson.plugins.testlink.util.TestLinkHelper.addCustomFieldEnvironmentVariableName(TestLinkHelper.java:263) at hudson.plugins.testlink.util.TestLinkHelper.createTestLinkEnvironmentVariables(TestLinkHelper.java:201) at hudson.plugins.testlink.util.TestLinkHelper.buildTestCaseEnvVars(TestLinkHelper.java:304) at hudson.plugins.testlink.TestLinkBuilder.executeIterativeBuildSteps(TestLinkBuilder.java:431) at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:249) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:735) at hudson.model.Build$BuildExecution.build(Build.java:206) at hudson.model.Build$BuildExecution.doRun(Build.java:163) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:490) at hudson.model.Run.execute(Run.java:1735) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:405) Build step 'Invoke TestLink' marked build as failure Finished: FAILURE |
New:
Testlink is able to run if no adding action in Iterative Test Build Steps. If I add any kind of action, even just execute shell, the build will failed with below error msg. Started by user zzz Building in workspace /home/jenkins/jenkins/workspace/test Preparing TestLink client API. Using TestLink URL: http://10.0.0.2/testlink/lib/api/xmlrpc/v1/xmlrpc.php Found 6 automated test cases in TestLink. Sorting automated test cases by TestLink test plan execution order. Executing single Build Steps. Merging build environment variables with data retrieved from TestLink. [test] $ /bin/bash -xe /tmp/jenkins7699011295981967051.sh + rm result.xml + echo executing test plan test_plan, part of jenkins_test project executing test plan test_plan, part of jenkins_test project + pwd /home/jenkins/jenkins/workspace/test + cp /home/jenkins/pytest/result.xml ./ + echo Running test Running test Executing iterative Build Steps. ERROR: Build step failed with exception java.lang.NullPointerException at hudson.plugins.testlink.util.TestLinkHelper.addCustomFieldEnvironmentVariableName(TestLinkHelper.java:263) at hudson.plugins.testlink.util.TestLinkHelper.createTestLinkEnvironmentVariables(TestLinkHelper.java:201) at hudson.plugins.testlink.util.TestLinkHelper.buildTestCaseEnvVars(TestLinkHelper.java:304) at hudson.plugins.testlink.TestLinkBuilder.executeIterativeBuildSteps(TestLinkBuilder.java:431) at hudson.plugins.testlink.TestLinkBuilder.perform(TestLinkBuilder.java:249) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:735) at hudson.model.Build$BuildExecution.build(Build.java:206) at hudson.model.Build$BuildExecution.doRun(Build.java:163) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:490) at hudson.model.Run.execute(Run.java:1735) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:405) Build step 'Invoke TestLink' marked build as failure Finished: FAILURE |
plugin v3.11 (the last one without test plan custom fields) works fine.
v3.12, v3.13 and v3.14 fails as described before:
ERROR: Build step failed with exception
java.lang.NullPointerException
at hudson.plugins.testlink.util.TestLinkHelper.addCustomFieldEnvironmentVariableName(TestLinkHelper.java:263)
(not sure if the line number is the same in all versions)
I'm in Windows 10, with Jenkins 2.121.3 and TestLink 1.9.16.
It fails also in Jenkins 1.650