How to Publish Simulink Model Comparisons Without a Display in Linux?
Afficher commentaires plus anciens
When I attempt to publish a simulink model comparison in an Ubuntu CICD pipeline (Gitlab), I receive incomplete .html files in the output folder and the following error message:
"Error using slxmlcomp.SimulinkModelComparison/publish. Printing is not supported in -nodisplay mode."
My .yml file's job uses the command
matlab -batch "mySlxComparisonScript"
to call the visdiff and publish functions:
comparison = visdiff('target.slx', 'source.slx');
publish(comparison, Name='foo', OutputFolder="bar/");
When I run the same batch command on my local Windows machine, the comparison reports are published as expected without errors. This may mean that the publish behavior is different in Linux vs Windows. I cannot find any MathWorks documentation for slxmlcomp objects, SimulinkModelComparison objects, or using the publish command for these objects. Any workarounds, help, or insights are appreciated.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Simulink Report Generator dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!