Error Connect Squash to Jenkins [squashtm-publisher plugin]

wajmed
Messages : 6
Inscription : mer. avr. 17, 2019 12:51 pm

Error Connect Squash to Jenkins [squashtm-publisher plugin]

Message par wajmed »

jenkins: version. 2.157
Squash version. 1.14
I use the plugin: squashtm-publisher


When squash search jobs in jenkins, an error is generated.

[19-04-17 12:05:57.548] SquashTM - 21281 ERROR [http-nio-8080-exec-15] [uri=/squash/generic-projects/97/available-ta-projects;client=1.3.6.10;session=C17BE1CB32C9EE0583F7DF3E43553506;user=...]--- org.squashtest.tm.service.testautomation.spi.TestAutomationConnector: Test Automation : failed to list projects on server :
org.squashtest.tm.service.testautomation.spi.UnreadableResponseException: Test automation - jenkins : server 'http://XXXX:8080' returned malformed response :
at org.squashtest.tm.plugin.testautomation.jenkins.TestAutomationJenkinsConnector.listProjectsOnServer(TestAutomationJenkinsConnector.java:108)
at org.squashtest.tm.service.internal.testautomation.TestAutomationProjectManagerServiceImpl.listProjectsOnServer_aroundBody20(TestAutomationProjectManagerServiceImpl.java:149)
at org.squashtest.tm.service.internal.testautomation.TestAutomationProjectManagerServiceImpl$AjcClosure21.run(TestAutomationProjectManagerServiceImpl.java:1)

Caused by: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "_class" (Class org.squashtest.tm.plugin.testautomation.jenkins.beans.JobList), not marked as ignora
ble
at [Source: java.io.StringReader@354a3afd; line: 1, column: 12] (through reference chain: org.squashtest.tm.plugin.testautomation.jenkins.beans.JobList["_class"])
at org.codehaus.jackson.map.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:53)
at org.codehaus.jackson.map.deser.StdDeserializationContext.unknownFieldException(StdDeserializationContext.java:267)
at org.codehaus.jackson.map.deser.std.StdDeserializer.reportUnknownProperty(StdDeserializer.java:673)
at org.codehaus.jackson.map.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:659)
at org.codehaus.jackson.map.deser.BeanDeserializer.handleUnknownProperty(BeanDeserializer.java:1365)
at org.codehaus.jackson.map.deser.BeanDeserializer._handleUnknown(BeanDeserializer.java:725)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:703)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580)
at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2732)
at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1863)
at org.squashtest.tm.plugin.testautomation.jenkins.internal.JsonParser.readJobListFromJson(JsonParser.java:54)
at org.squashtest.tm.plugin.testautomation.jenkins.TestAutomationJenkinsConnector.listProjectsOnServer(TestAutomationJenkinsConnector.java:106)



Alternatively, i verify the content of the Jenkins response and the jenkins' jobs are well retrieved:
{"_class":"hudson.model.Hudson","jobs":[{"_class":"hudson.maven.MavenModuleSet","name":"automatemj","color":"notbuilt"},{"_class":"hudson.maven.MavenModuleSet","name":"AutomatisationMJProject","color":"blue"},{"_class":"hudson.maven.MavenModuleSet","name":"AutomatisationParameter","color":"yellow"},{"_class":"org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject","name":"PipelineNode1"},{"_class":"hudson.maven.MavenModuleSet","name":"testjob","color":"blue"}]}


Could you help me to resolve this issue please

wajmed
Messages : 6
Inscription : mer. avr. 17, 2019 12:51 pm

solved Re: Error Connect Squash to Jenkins [squashtm-publisher plugin]

Message par wajmed »

This issue is resolved after installing the 1.19 version of squash TM

Répondre