Closed Damounet closed 1 year ago
I think I found the issue.
My model/folder.xml
file looks like that :
<archimate:ArchimateModel
xmlns:archimate="http://www.archimatetool.com/archimate"
name="XXX - Architecture"
id="id-ffb32890d4aa4878b41d5c1008e6e7ac"
purpose="blablabla
version="4.9.0">
<profiles
name="Green Check"
id="id-6e7c7ca4b1ff4524abcb283baae6147e"
imagePath="images/_URqlEDUGEe2dvvIRZDxT8g.png"
conceptType="Goal"/>
<profiles
name="Red Cross"
id="id-6462ae50b65e4fdd96e2a5560373f25e"
imagePath="images/_xIat8DUGEe2dvvIRZDxT8g.png"
conceptType="Goal"/>
<profiles
name="Warning"
id="id-56b807ae9b9c44a98e1403dc4870c602"
imagePath="images/_kKPnUDUGEe2dvvIRZDxT8g.png"
conceptType="Goal"/>
</archimate:ArchimateModel>
So when your script tries to retrieve the name of the archimate model here https://github.com/WoozyMasta/archimate-ci-image/blob/master/entrypoint.sh#L156 it greps all lines with the name attribute in it.
I propose to add yq to your image and replace the line 156 with this command :
yq -p=xml '.ArchimateModel.+name' ./model/folder.xml
XXX - Architecture
which gets the attribute name in the tag ArchimateModel of the folder.xml file.
Hello,
I have been using this image since the beginning of the year with success but I stumbled on an error since I started to work with Specialization yesterday.
I am using archi 4.9.2 build 202201131438 with a build on a gitlab ci pipeline.
Here is the gitlab-ci file (taken from your doc)
This is the result of my build:
What I find odd is that the name of the model seems to be named
XXX - Architecture Green Check Red Cross Warning.archimate
(the return to the lines included), altough it is really namedXXX - Architecture.archimate
and the 3 Green Check and so on are the name of the specialization I created.And thus it seems to give an error later on a sed (this one it seems: https://github.com/WoozyMasta/archimate-ci-image/blob/master/entrypoint.sh#L122).
Any Help would be appreciated :)
On monday I'll try to remove my specializations to validate this comes from here if you need.