Could not find goal 'list' in plugin

missenn
Messages : 18
Inscription : lun. déc. 14, 2015 12:39 pm

Could not find goal 'list' in plugin

Message par missenn »

Bonjour,

Je veux mettre en place squash TM/TA chez une entreprise.
J'ai configuré Squash TM (V 1.12.2.RELEASE) et le serveur TA (1.7.0-RELEASE) j'ai la toolbox TA (1.7.1-RELEASE)

Mon problème c'est que quand je lance le build manuellement dans jenkins avec un paramètre operation =list
J'obtiens cette erreur dans la console jenkins :

[b][ERROR] Could not find goal 'list' in plugin org.squashtest.ta:squash-ta-maven-plugin:1.7.1-RELEASE among available goals run, legacy-run, test-list -> [Help 1][/b]


Quand je mets operaion =test-list ou operation=run et je lance le build, là l'erreur disparaît


Dans Squash TM , dans la partie script auto quand je clique pour choisir un cas de test de la liste TA , seuls les jobs jenkins sont affichés, je ne vois aucun cas de test TA à sélectionner.
et un build sous jenkins est lancé automatiquement ( en parallèle) , là je ne comprends rien.

Que dois je faire pour afficher la liste des script TA dans TM ??!!!
je veux aussi savoir ce qu'on doit mettre dans les paramètres du job (operatio + externalJobId+notificationURL+testList+testsuite.json ... )

J'ai besoin d'aide, avez vous une idée ?!
missenn
Messages : 18
Inscription : lun. déc. 14, 2015 12:39 pm

Could not find goal 'list' in plugin

Message par missenn »

Bonjour,

Mon problème est résolu,
J'ai utilisé le framework TA 1.8.0 au lieu de 1.7.1
Karim Drifi
Messages : 119
Inscription : lun. nov. 30, 2015 2:45 pm

Could not find goal 'list' in plugin

Message par Karim Drifi »

Bonjour,

Pour information et au cas ou d'autres utilisateurs rencontreraient le même problème, les versions de TM à partir de 1.12 sont compatibles avec le framework TA >= 1.8 en raison d'une évolution du lien TM-TA sur le passage de paramètres.
Par défaut, le pom.xml de la toolbox est paramétré avec la version 1.7 du framework, cela changera sous peu car je suis actuellement en train de mettre à jour toutes les ressources en ligne de TA.

Bien cordialement,

Karim Drifi.
rpandauzova
Messages : 17
Inscription : jeu. sept. 27, 2018 8:48 am

Could not find goal 'list' in plugin

Message par rpandauzova »

Hello,
I have the same issue.

The squash-ta goals run and test-list are built successfully, but only 'list' fails with NullPointerException:



[Project1] $ java -cp /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven35-agent-1.12.jar:/var/lib/jenkins/apache-maven-3.5.0/boot/plexus-classworlds-2.5.2.jar:/var/lib/jenkins/apache-maven-3.5.0/conf/logging jenkins.maven3.agent.Maven35Main /var/lib/jenkins/apache-maven-3.5.0 /var/cache/jenkins/war/WEB-INF/lib/remoting-3.17.jar /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven35-interceptor-1.12.jar /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.12.jar 46343
channel started
using global settings config with name TaGlobalSettings
Replacing all maven server entries not found in credentials list is true
Executing Maven: -B -f /var/lib/jenkins/workspace/Project1/pom.xml -gs /tmp/global-settings7407325391593313182.xml -Dta.test.suite=**/*.ta,**/*.txt,**/*.test -Dstatus.update.events.url=http://ladybug.telenor.bg:8081/squash -Dsquash.ta.external.id=1 -Djobname=Project1 -Dhostname=${HOSTNAME} -Dsquash.ta.conf.file=/var/lib/jenkins/taLinkConf.properties -Dta.tmcallback.reportbaseurl=http://ladybug.telenor.bg:8080/job -Dta.tmcallback.jobexecutionid=54 -Dta.tmcallback.reportname=Squash_TA_HTML_Report -Dta.delete.json.file=true org.squashtest.ta::squash-ta-maven-plugin::list
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Squash TA First Project 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- squash-ta-maven-plugin:1.10.0-RELEASE:list (default-cli) @ my.squash.ta.project ---
[INFO] Launching Squash TA Chewie edition.
[JENKINS] Archiving disabled
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.391 s
[INFO] Finished at: 2019-03-01T21:01:08+02:00
[JENKINS] Archiving disabled
[INFO] Final Memory: 21M/141M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.squashtest.ta:squash-ta-maven-plugin:1.10.0-RELEASE:list (default-cli) on project my.squash.ta.project: Execution default-cli of goal org.squashtest.ta:squash-ta-maven-plugin:1.10.0-RELEASE:list failed. NullPointerException -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/disp ... nException
channel stopped
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at BUILD level /var/lib/jenkins/workspace/Project1/target/squashTA/html-reports to /var/lib/jenkins/jobs/Project1/builds/54/htmlreports/Squash_20TA_20HTML_20Report
[htmlpublisher] Archiving at PROJECT level /var/lib/jenkins/workspace/Project1/target/squashTA/test-tree to /var/lib/jenkins/jobs/Project1/htmlreports/Test_20list
Finished: FAILURE
Répondre

Revenir à « Squash Execution Server »