i am running a simple calculator project which is located in github. i want to Publish test result to Zephyr for JIRA'. i get always ERROR: Build step failed with exception java.lang.ClassCastException Started by user anonymous Building in workspace /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace > git rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/AhmedCharfi/charfi.git # timeout=10 Fetching upstream changes from https://github.com/AhmedCharfi/charfi.git > git --version # timeout=10 using .gitcredentials to set credentials > git config --local credential.username AhmedCharfi # timeout=10 > git config --local credential.helper store --file=/tmp/git4288973419038232058.credentials # timeout=10 > git -c core.askpass=true fetch --tags --progress https://github.com/AhmedCharfi/charfi.git +refs/heads/:refs/remotes/origin/ > git config --local --remove-section credential # timeout=10 > git rev-parse refs/remotes/origin/master^ {commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/master^{commit}
# timeout=10 Checking out Revision 3fbf34ac0645f5426d84f992d9607042317922fa (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 3fbf34ac0645f5426d84f992d9607042317922fa > git rev-list 3fbf34ac0645f5426d84f992d9607042317922fa # timeout=10 [workspace] $ mvn clean package [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building 2 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ 2 — [INFO] Deleting /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/target [INFO] [INFO] — maven-resources-plugin:2.3:resources (default-resources) @ 2 — [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/src/main/resources [INFO] [INFO] — maven-compiler-plugin:2.0.2:compile (default-compile) @ 2 — [INFO] Compiling 1 source file to /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/target/classes [INFO] [INFO] — maven-resources-plugin:2.3:testResources (default-testResources) @ 2 — [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/src/test/resources [INFO] [INFO] — maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ 2 — [INFO] Compiling 1 source file to /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/target/test-classes [INFO] [INFO] — maven-surefire-plugin:2.10:test (default-test) @ 2 — [INFO] Surefire report directory: /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/target/surefire-reports
------------------------------------------------------- T E S T S ------------------------------------------------------- Running Tests.RechnerTest Cannot divide by 0! Wrong number format Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.057 sec
Results :
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0
[INFO] [INFO] — maven-jar-plugin:2.2:jar (default-jar) @ 2 — [INFO] Building jar: /var/lib/jenkins/jobs/JenkiszephyrAutomationProject/workspace/target/2-0.0.1-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.327s [INFO] Finished at: Mon Mar 14 14:36:54 UTC 2016 [INFO] Final Memory: 17M/153M [INFO] ------------------------------------------------------------------------ Recording test results [ZapiTestResultReporter] [INFO] Examining test results... Build result is SUCCESS ERROR: Build step failed with exception java.lang.ClassCastException: com.thed.zephyr.jenkins.model.ZephyrInstance cannot be cast to com.thed.zephyr.jenkins.model.ZephyrInstance at com.thed.zephyr.jenkins.reporter.ZfjReporter.fetchCredentials(ZfjReporter.java:227) at com.thed.zephyr.jenkins.reporter.ZfjReporter.initializeZephyrData(ZfjReporter.java:211) at com.thed.zephyr.jenkins.reporter.ZfjReporter.perform(ZfjReporter.java:88) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668) at hudson.model.Run.execute(Run.java:1763) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Build step 'Publish test result to Zephyr for JIRA' marked build as failure Finished: FAILURE
Any Idea to fix this bug? Best
|