woozymasta / archimate-ci-image Goto Github PK
View Code? Open in Web Editor NEWArchi container image for use in continuous integration pipelines
Home Page: https://woozymasta.github.io/archimate-ci-image-example/?view=6213
License: MIT License
Archi container image for use in continuous integration pipelines
Home Page: https://woozymasta.github.io/archimate-ci-image-example/?view=6213
License: MIT License
Hello,
My Azure DevOps git repository does not have .git extension in the url and seems like the archimate-ci-image script is enforcing it.
I cannot confirm if that is the issue but my point is:
Note: Azure DevOps is generating url using this pattern.
Hi
Could you tell me if the gh-pages branch needs to be or not, orphaned from the master branch ?
Did you use "git checkout --orphan gh-pages" ?
Thank you so much for your help
Regards
Hi,
Great job, this docker-image works perfectly to build an architecture pipeline with Archi/coArchi/jArchi.
Any chance you could release a 5.2-based image ?
Hi,
I'm on the latest 4.9.1-1.0.2 version,
When setting void properties field, it's generating this error:
context [/modelreport /expandFolder /_sub1 /expandFolder /_sub1 /expandFolder /_sub1 /expandFolder /_sub2 /classesFromProperties /_sub3] 1:25 internal error: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.base/java.lang.StringLatin1.charAt(Unknown Source)
at java.base/java.lang.String.charAt(Unknown Source)
at org.stringtemplate.v4.STGroup.getEmbeddedInstanceOf(STGroup.java:177)
at org.stringtemplate.v4.Interpreter._exec(Interpreter.java:235)
at org.stringtemplate.v4.Interpreter.exec(Interpreter.java:145)
at org.stringtemplate.v4.Interpreter.writeObject(Interpreter.java:742)
at org.stringtemplate.v4.Interpreter.writeIterator(Interpreter.java:772)
at org.stringtemplate.v4.Interpreter.writeObject(Interpreter.java:747)
at org.stringtemplate.v4.Interpreter.writeObjectNoOptions(Interpreter.java:674)
at org.stringtemplate.v4.Interpreter._exec(Interpreter.java:285)
at org.stringtemplate.v4.Interpreter.exec(Interpreter.java:145)
at org.stringtemplate.v4.Interpreter.writeObject(Interpreter.java:742)
at org.stringtemplate.v4.Interpreter.writeObjectNoOptions(Interpreter.java:674)
at org.stringtemplate.v4.Interpreter._exec(Interpreter.java:285)
at org.stringtemplate.v4.Interpreter.exec(Interpreter.java:145)
at org.stringtemplate.v4.Interpreter.writeObject(Interpreter.java:742)
at org.stringtemplate.v4.Interpreter.writeIterator(Interpreter.java:772)
at org.stringtemplate.v4.Interpreter.writeObject(Interpreter.java:747)
at org.stringtemplate.v4.Interpreter.writeObjectNoOptions(Interpreter.java:674)
at org.stringtemplate.v4.Interpreter._exec(Interpreter.java:285)
at org.stringtemplate.v4.Interpreter.exec(Interpreter.java:145)
at org.stringtemplate.v4.Interpreter.writeObject(Interpreter.java:742)
at org.stringtemplate.v4.Interpreter.writeObjectNoOptions(Interpreter.java:674)
at org.stringtemplate.v4.Interpreter._exec(Interpreter.java:285)
at org.stringtemplate.v4.Interpreter.exec(Interpreter.java:145)
at org.stringtemplate.v4.Interpreter.writeObject(Interpreter.java:742)
at org.stringtemplate.v4.Interpreter.writeIterator(Interpreter.java:772)
at org.stringtemplate.v4.Interpreter.writeObject(Interpreter.java:747)
at org.stringtemplate.v4.Interpreter.writeObjectNoOptions(Interpreter.java:674)
at org.stringtemplate.v4.Interpreter._exec(Interpreter.java:285)
at org.stringtemplate.v4.Interpreter.exec(Interpreter.java:145)
at org.stringtemplate.v4.Interpreter.writeObject(Interpreter.java:742)
at org.stringtemplate.v4.Interpreter.writeObjectNoOptions(Interpreter.java:674)
at org.stringtemplate.v4.Interpreter._exec(Interpreter.java:285)
at org.stringtemplate.v4.Interpreter.exec(Interpreter.java:145)
at org.stringtemplate.v4.Interpreter.writeObject(Interpreter.java:742)
at org.stringtemplate.v4.Interpreter.writeIterator(Interpreter.java:772)
at org.stringtemplate.v4.Interpreter.writeObject(Interpreter.java:747)
at org.stringtemplate.v4.Interpreter.writeObjectNoOptions(Interpreter.java:674)
at org.stringtemplate.v4.Interpreter._exec(Interpreter.java:285)
at org.stringtemplate.v4.Interpreter.exec(Interpreter.java:145)
at org.stringtemplate.v4.Interpreter.writeObject(Interpreter.java:742)
at org.stringtemplate.v4.Interpreter.writeObjectNoOptions(Interpreter.java:674)
at org.stringtemplate.v4.Interpreter._exec(Interpreter.java:285)
at org.stringtemplate.v4.Interpreter.exec(Interpreter.java:145)
at org.stringtemplate.v4.Interpreter.writeObject(Interpreter.java:742)
at org.stringtemplate.v4.Interpreter.writeIterator(Interpreter.java:772)
at org.stringtemplate.v4.Interpreter.writeObject(Interpreter.java:747)
at org.stringtemplate.v4.Interpreter.writeObjectNoOptions(Interpreter.java:674)
at org.stringtemplate.v4.Interpreter._exec(Interpreter.java:285)
at org.stringtemplate.v4.Interpreter.exec(Interpreter.java:145)
at org.stringtemplate.v4.Interpreter.writeObject(Interpreter.java:742)
at org.stringtemplate.v4.Interpreter.writeObjectNoOptions(Interpreter.java:674)
at org.stringtemplate.v4.Interpreter._exec(Interpreter.java:285)
at org.stringtemplate.v4.Interpreter.exec(Interpreter.java:145)
at org.stringtemplate.v4.ST.write(ST.java:427)
at org.stringtemplate.v4.ST.render(ST.java:497)
at org.stringtemplate.v4.ST.render(ST.java:491)
at org.stringtemplate.v4.ST.render(ST.java:487)
at com.archimatetool.reports.html.HTMLReportExporter.createReport(HTMLReportExporter.java:257)
at com.archimatetool.reports.commandline.HTMLReportProvider.run(HTMLReportProvider.java:72)
at com.archimatetool.commandline.CentralScrutinizer.runProviderOptions(CentralScrutinizer.java:164)
at com.archimatetool.commandline.CentralScrutinizer.start(CentralScrutinizer.java:82)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
at org.eclipse.equinox.launcher.Main.main(Main.java:1440)
[HTMLReport] Report generated!
[Core] Saved model to '/data/gitlab-runner/builds/R1yzTdHi/0/architecture/platformasis/public/OodriveArchi.archimate'
Done. Reports saved to /data/gitlab-runner/builds/R1yzTdHi/0/architecture/platformasis/public
Build successed but no change happened.
Could it have been avoided ?
Hello,
I am running the image with the jenkins of the company and i end with this error.
It seems that everything is running fine, besides that when the Archi app is starting, it looks for something with dbus and trying to run a gnome or xfce thing.
And it fails.
+ mkdir -p report/html
+ mkdir -p report/jasper
+ export ARCHI_HTML_REPORT_ENABLED=true
+ export ARCHI_JASPER_REPORT_ENABLED=true
+ export ARCHI_JASPER_REPORT_FORMATS=PDF,DOCX
+ export ARCHI_CSV_REPORT_ENABLED=false
+ export ARCHI_EXPORT_MODEL_ENABLED=true
+ export ARCHI_PROJECT_PATH=/data/jenkins/workspace/workspace/sd_Architecture_Archimate_master
+ export ARCHI_REPORT_PATH=/data/jenkins/workspace/workspace/sd_Architecture_Archimate_master/report
+ export DEBUG=true
+ pwd
/data/jenkins/workspace/workspace/sd_Architecture_Archimate_master
+ ls
?
Dockerfile
Jenkinsfile
config.ini
images
model
org.eclipse.core.runtime
org.eclipse.equinox.app
org.eclipse.osgi
org.eclipse.update
p2
report
reporthtml
reportjasper
+ /opt/Archi/entrypoint.sh
+ set -euo pipefail
+ : /data/jenkins/workspace/workspace/sd_Architecture_Archimate_master
+ : /data/jenkins/workspace/workspace/sd_Architecture_Archimate_master/report
+ : true
+ : true
+ : PDF,DOCX
+ : false
+ : true
+ : com.archimatetool.commandline.app
+ : https://github.com/
+ : gh-pages
+ : .archi_report
+ _ssh_args=('-o' 'BatchMode=yes' '-o' 'UserKnownHostsFile=/dev/null' '-o' 'StrictHostKeyChecking=no')
+ declare -a _ssh_args
+ GIT_SSH_COMMAND='ssh -o BatchMode=yes -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
+ GIT_TERMINAL_PROMPT=0
+ DISPLAY=:1
+ export GIT_SSH_COMMAND GIT_TERMINAL_PROMPT DISPLAY
+ _re_url='([\w.@\:/~\-]+)(\.git)(\/)?'
+ _re_proto_http='(http(s)?(:(\/){0,3}))?'
+ _re_proto_ssh='((((git|user)@[\w.-]+)|(git|ssh))(:(\/){0,3}))'
+ '[' 0 -ge 1 ']'
+ '[' -f /data/jenkins/workspace/workspace/sd_Architecture_Archimate_master/model/folder.xml ']'
++ grep -Pom1 'name="\K([^"]*)' /data/jenkins/workspace/workspace/sd_Architecture_Archimate_master/model/folder.xml
++ head -1
+ _project=ASD
+ '[' '' == true ']'
+ '[' '' == true ']'
+ '[' -f /data/jenkins/workspace/workspace/sd_Architecture_Archimate_master/model/folder.xml ']'
+ echo 'Work with exist model in /data/jenkins/workspace/workspace/sd_Architecture_Archimate_master directory'
Work with exist model in /data/jenkins/workspace/workspace/sd_Architecture_Archimate_master directory
+ git -C /data/jenkins/workspace/workspace/sd_Architecture_Archimate_master pull
+ :
+ archi_run
+ _args=()
+ local -a _args
+ '[' true == true ']'
+ _args+=(--html.createReport "${ARCHI_HTML_REPORT_PATH:=$ARCHI_REPORT_PATH/html}")
+ '[' false == true ']'
+ '[' true == true ']'
+ _args+=(--saveModel "${ARCHI_EXPORT_MODEL_PATH:=$ARCHI_REPORT_PATH}/$_project.archimate")
+ '[' true == true ']'
+ _args+=(--jasper.createReport "${ARCHI_JASPER_REPORT_PATH:=$ARCHI_REPORT_PATH/jasper}" --jasper.format "$ARCHI_JASPER_REPORT_FORMATS" --jasper.filename "$_project" --jasper.title "${ARCHI_JASPER_REPORT_TITLE:=$_project}")
+ xvfb-run /opt/Archi/Archi -application com.archimatetool.commandline.app -consoleLog -nosplash --modelrepository.loadModel /data/jenkins/workspace/workspace/sd_Architecture_Archimate_master --html.createReport /data/jenkins/workspace/workspace/sd_Architecture_Archimate_master/report/html --saveModel /data/jenkins/workspace/workspace/sd_Architecture_Archimate_master/report/ASD.archimate --jasper.createReport /data/jenkins/workspace/workspace/sd_Architecture_Archimate_master/report/jasper --jasper.format PDF,DOCX --jasper.filename ASD --jasper.title ASD
WARNING: Using incubator modules: jdk.incubator.foreign, jdk.incubator.vector
SWT SessionManagerDBus: Failed to connect to org.gnome.SessionManager: Error spawning command line ?dbus-launch --autolaunch=cd0e52a8ff461c63a46cb6b4645a901b --binary-syntax --close-stderr?: Child process exited with code 1
SWT SessionManagerDBus: Failed to connect to org.xfce.SessionManager: Error spawning command line ?dbus-launch --autolaunch=cd0e52a8ff461c63a46cb6b4645a901b --binary-syntax --close-stderr?: Child process exited with code 1
java.io.IOException: Model was not loaded
at com.archimatetool.jasperreports.commandline.JasperReportsProvider.run(JasperReportsProvider.java:64)
at com.archimatetool.commandline.CentralScrutinizer.runProviderOptions(CentralScrutinizer.java:164)
at com.archimatetool.commandline.CentralScrutinizer.start(CentralScrutinizer.java:82)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
at org.eclipse.equinox.launcher.Main.main(Main.java:1440)
java.io.IOException: Model was not loaded
at com.archimatetool.reports.commandline.HTMLReportProvider.run(HTMLReportProvider.java:66)
at com.archimatetool.commandline.CentralScrutinizer.runProviderOptions(CentralScrutinizer.java:164)
at com.archimatetool.commandline.CentralScrutinizer.start(CentralScrutinizer.java:82)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
at org.eclipse.equinox.launcher.Main.main(Main.java:1440)
java.io.IOException: Model not set
at com.archimatetool.commandline.providers.SaveModelProvider.run(SaveModelProvider.java:60)
at com.archimatetool.commandline.CentralScrutinizer.runProviderOptions(CentralScrutinizer.java:164)
at com.archimatetool.commandline.CentralScrutinizer.start(CentralScrutinizer.java:82)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
at org.eclipse.equinox.launcher.Main.main(Main.java:1440)
+ printf '\n%s\n\n' 'Done. Reports saved to /data/jenkins/workspace/workspace/sd_Architecture_Archimate_master/report'
Done. Reports saved to /data/jenkins/workspace/workspace/sd_Architecture_Archimate_master/report
+ exit 0
The host does not have the dbus lib installed, I don't know if that can be a problem.
The model is generating the html if I try to build it on my WSL ubuntu in local.
I really don't know what can be missing, especially as it's running with docker and that normaly, it can't be related to anything on the host. I don't have a clue on what to do or what to tell the devops team to help me debug that.
I know that it might be a question for the Archimate forum but i'd give it a try here too.
Hello.
Thank you for such universal building image.
When I've tried to build my model which have named "Оператор Газпром ИД" I see in logs:
[LoadModelFromRepositoryProvider] Loading model at /model
[LoadModelFromRepositoryProvider] Loaded model: '???????? ??????? ??'
I've tried also provide LANG=en_US.UTF-8 env variable, but then see in log additional:
(process:40): Gtk-WARNING **: 00:19:50.117: Locale not supported by C library.
Using the fallback 'C' locale.
Hello,
Thanks for great work. When I enable exporting the model, script breaks because $_project is resolved as multiline string. How can i overwrite $_project variable? Am I doing sth wrong?
CICD Pipeline: gitlab
Docker Image: quay.io/woozymasta/archimate-ci-image:4.9.2-1.0.3
Hi, not passing github actions.
In the details output is this:
Run WoozyMasta/[email protected]
with:
archiHtmlReportEnabled: true
archiJasperReportEnabled: true
archiJasperReportFormats: PDF,DOCX
archiCsvReportEnabled: false
archiExportModelEnabled: true
githubToken: ***
/usr/bin/docker run --name ghcriowoozymastaarchimateciimage50[2](https://github.com/emacsway/grade/actions/runs/6565655427/job/17834651408?pr=13#step:4:2)104_efc4fd --label b7fd71 --workdir /github/workspace --rm -e "INPUT_ARCHIHTMLREPORTENABLED" -e "INPUT_ARCHIJASPERREPORTENABLED" -e "INPUT_ARCHIJASPERREPORTFORMATS" -e "INPUT_ARCHICSVREPORTENABLED" -e "INPUT_ARCHIEXPORTMODELENABLED" -e "INPUT_GITHUBTOKEN" -e "INPUT_ARCHIJASPERREPORTTITLE" -e "INPUT_GITHUBSERVERURL" -e "INPUT_GITHUBPAGESDOMAIN" -e "INPUT_GITHUBPAGESBRANCH" -e "INPUT_GITSUBTREEPREFIX" -e "INPUT_DEBUGACTION" -e "GITHUB_TOKEN" -e "ARCHI_HTML_REPORT_ENABLED" -e "ARCHI_JASPER_REPORT_ENABLED" -e "ARCHI_JASPER_REPORT_FORMATS" -e "ARCHI_JASPER_REPORT_TITLE" -e "ARCHI_CSV_REPORT_ENABLED" -e "ARCHI_EXPORT_MODEL_ENABLED" -e "GITHUB_SERVER_URL" -e "GITHUB_PAGES_DOMAIN" -e "GITHUB_PAGES_BRANCH" -e "GIT_SUBTREE_PREFIX" -e "DEBUG" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/grade/grade":"/github/workspace" ghcr.io/woozymasta/archimate-ci-image:5.0.2-1.0.4
Run Archi report generation in GitHub actions
WARNING: Using incubator modules: jdk.incubator.vector, jdk.incubator.foreign
[LoadModelFromRepositoryProvider] Loading model at /github/workspace
[LoadModelFromRepositoryProvider] Loaded model: 'grade'
[Jasper Reports] Creating Jasper Reports from 'grade' to /github/workspace/.archi_report
[Jasper Reports] Generating Image for View 1 of 5
[Jasper Reports] Generating Image for View 2 of 5
[Jasper Reports] Generating Image for View [3](https://github.com/emacsway/grade/actions/runs/6565655427/job/17834651408?pr=13#step:4:3) of 5
[Jasper Reports] Generating Image for View [4](https://github.com/emacsway/grade/actions/runs/6565655427/job/17834651408?pr=13#step:4:4) of [5](https://github.com/emacsway/grade/actions/runs/6565655427/job/17834651408?pr=13#step:4:5)
[Jasper Reports] Generating Image for View 5 of 5
[Jasper Reports] Creating Jasper Print...
[Jasper Reports] Compiling...
[Jasper Reports] Filling...
[Jasper Reports] Generating PDF...
[Jasper Reports] Generating DOCX...
[Jasper Reports] Cleaning up...
[Jasper Reports] Reports Created!
[HTMLReport] Creating report from 'grade' to /github/workspace/.archi_report
[HTMLReport] Copying files...
[HTMLReport] Copying hints...
[HTMLReport] Creating files...
[HTMLReport] Generating image for View 1 of 5
[HTMLReport] Generating image for View 2 of 5
[HTMLReport] Generating image for View 3 of 5
[HTMLReport] Generating image for View 4 of 5
[HTMLReport] Generating image for View 5 of 5
[HTMLReport] Creating files...
[HTMLReport] Finalising...
[HTMLReport] Report generated!
[Core] Saved model to '/github/workspace/.archi_report/grade.archimate'
Done. Reports saved to /github/workspace/.archi_report
[main f[6](https://github.com/emacsway/grade/actions/runs/6565655427/job/17834651408?pr=13#step:4:6)c844c] Archimate report archi:archi_report
520 files changed, 44[7](https://github.com/emacsway/grade/actions/runs/6565655427/job/17834651408?pr=13#step:4:7)[9](https://github.com/emacsway/grade/actions/runs/6565655427/job/17834651408?pr=13#step:4:10)6 insertions(+)
create mode [10](https://github.com/emacsway/grade/actions/runs/6565655427/job/17834651408?pr=13#step:4:11)06[44](https://github.com/emacsway/grade/actions/runs/6565655427/job/17834651408?pr=13#step:4:45) .archi_report/.nojekyll
....
create mode 100644 .archi_report/lib/jquery-ui-layout/layout-default-1.4.4.css
create mode 100644 .archi_report/lib/jquery-ui/jquery-ui.min.js
create mode 100644 .archi_report/lib/jquery/jquery.min.js
'13/merge' does not refer to a commit
where there are dots, there are strings like
These are github actions settings:
archi_report:
permissions:
contents: write
pages: write
runs-on: ubuntu-latest
name: Deploy Archi report HTML to GitHub Pages
steps:
- name: Check out the repo
uses: actions/checkout@v4
env:
GITHAB_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
with:
ref: main
- name: Deploy Archi report
id: archi
uses: WoozyMasta/[email protected]
with:
archiHtmlReportEnabled: true
archiJasperReportEnabled: true
archiJasperReportFormats: PDF,DOCX
archiCsvReportEnabled: false
archiExportModelEnabled: true
githubToken: ${{ secrets.GITHUB_TOKEN }}
What could be the problem?
I would like to publish to an Azure static web app, using this action as part of a workflow together with the https://github.com/Azure/static-web-apps-deploy/tree/v1/ action.
A simple configuration option that allowed me to set the ouput directory of the generated documentation would be great. Is that something that could be added to a wishlist?
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)
pages:
stage: build
image:
name: woozymasta/archimate-ci-image:4.9.2-1.0.3
entrypoint: [""]
script:
- /opt/Archi/entrypoint.sh
variables:
ARCHI_PROJECT_PATH: $CI_PROJECT_DIR
ARCHI_HTML_REPORT_ENABLED: "true"
ARCHI_JASPER_REPORT_ENABLED: "true"
ARCHI_JASPER_REPORT_FORMATS: "PDF,DOCX"
ARCHI_CSV_REPORT_ENABLED: "false"
ARCHI_EXPORT_MODEL_ENABLED: "true"
artifacts:
name: "$CI_JOB_NAME from $CI_PROJECT_NAME on $CI_COMMIT_REF_SLUG"
expire_in: 30d
paths:
- public
This is the result of my build:
Running with gitlab-runner 14.8.2 (c6e7e194)
on group_tma_runner1 siL-o4mT
Resolving secrets
00:00
Preparing the "docker" executor
00:[2](https://xxx/archi/archimate/-/jobs/194581#L2)5
Using Docker executor with image woozymasta/archimate-ci-image:4.9.2-1.0.[3](https://xxx/archi/archimate/-/jobs/194581#L3) ...
Pulling docker image woozymasta/archimate-ci-image:4.9.2-1.0.3 ...
Using docker image sha2[5](https://xxx/archi/archimate/-/jobs/194581#L5)[6](https://xxx/archi/archimate/-/jobs/194581#L6):5[7](https://xxx/archi/archimate/-/jobs/194581#L7)06da2[8](https://xxx/archi/archimate/-/jobs/194581#L8)994eec7f11284dac7afb6796515102c9aa93d59ea546a49478cdf53e for woozymasta/archimate-ci-image:4.9.2-1.0.3 with digest woozymasta/archimate-ci-image@sha256:9a7013c5f1843362d25d13324ad8f9fb781e754a8a9520bb671c47b257474a21 ...
Preparing environment
00:03
Running on runner-sil-o4mt-project-549-concurrent-0 via frahqapp715...
Getting source from Git repository
00:03
Fetching changes with git depth set to 50...
Initialized empty Git repository in /builds/xxx/archi/archimate/.git/
Created fresh repository.
Checking out b87a0d35 as master...
Skipping Git submodules setup
Executing "step_script" stage of the job script
Using docker image sha256:5706da28994eec7f11284dac7afb6796515102c9aa93d59ea546a49478cdf53e for woozymasta/archimate-ci-image:4.9.2-1.0.3 with digest woozymasta/archimate-ci-image@sha256:9a7013c5f1843362d25d13324ad8f9fb781e754a8a9520bb671c47b257474a21 ...
$ /opt/Archi/entrypoint.sh
Run Archi report generation in GitLab CI
Render ArchiMate report
01:07
[LoadModelFromRepositoryProvider] Loading model at /builds/xxx/archi/archimate
[LoadModelFromRepositoryProvider] Loaded model: 'TDNG - Architecture'
[Jasper Reports] Creating Jasper Reports from 'TDNG - Architecture' to /builds/xxx/archi/archimate/public
[Jasper Reports] Generating Image for View 1 of 72
[Jasper Reports] Generating Image for View 2 of 72
[Jasper Reports] Generating Image for View 3 of 72
[Jasper Reports] Generating Image for View 4 of 72
[Jasper Reports] Generating Image for View 5 of 72
[Jasper Reports] Generating Image for View 6 of 72
[Jasper Reports] Generating Image for View 7 of 72
[Jasper Reports] Generating Image for View 8 of 72
[Jasper Reports] Generating Image for View 9 of 72
[Jasper Reports] Generating Image for View [10](https://xxx/archi/archimate/-/jobs/194581#L10) of 72
[Jasper Reports] Generating Image for View [11](https://xxx/archi/archimate/-/jobs/194581#L11) of 72
[Jasper Reports] Generating Image for View 12 of 72
[Jasper Reports] Generating Image for View [13](https://xxx/archi/archimate/-/jobs/194581#L13) of 72
[Jasper Reports] Generating Image for View [14](https://xxx/archi/archimate/-/jobs/194581#L14) of 72
[Jasper Reports] Generating Image for View [15](https://xxx/archi/archimate/-/jobs/194581#L15) of 72
[Jasper Reports] Generating Image for View [16](https://xxx/archi/archimate/-/jobs/194581#L16) of 72
[Jasper Reports] Generating Image for View [17](https://xxx/archi/archimate/-/jobs/194581#L17) of 72
[Jasper Reports] Generating Image for View [18](https://xxx/archi/archimate/-/jobs/194581#L18) of 72
[Jasper Reports] Generating Image for View 19 of 72
[Jasper Reports] Generating Image for View [20](https://xxx/archi/archimate/-/jobs/194581#L20) of 72
[Jasper Reports] Generating Image for View [21](https://xxx/archi/archimate/-/jobs/194581#L21) of 72
[Jasper Reports] Generating Image for View [22](https://xxx/archi/archimate/-/jobs/194581#L22) of 72
[Jasper Reports] Generating Image for View [23](https://xxx/archi/archimate/-/jobs/194581#L23) of 72
[Jasper Reports] Generating Image for View [24](https://xxx/archi/archimate/-/jobs/194581#L24) of 72
[Jasper Reports] Generating Image for View [25](https://xxx/archi/archimate/-/jobs/194581#L25) of 72
[Jasper Reports] Generating Image for View [26](https://xxx/archi/archimate/-/jobs/194581#L26) of 72
[Jasper Reports] Generating Image for View [27](https://xxx/archi/archimate/-/jobs/194581#L27) of 72
[Jasper Reports] Generating Image for View [28](https://xxx/archi/archimate/-/jobs/194581#L28) of 72
[Jasper Reports] Generating Image for View [29](https://xxx/archi/archimate/-/jobs/194581#L29) of 72
[Jasper Reports] Generating Image for View [30](https://xxx/archi/archimate/-/jobs/194581#L30) of 72
[Jasper Reports] Generating Image for View [31](https://xxx/archi/archimate/-/jobs/194581#L31) of 72
[Jasper Reports] Generating Image for View [32](https://xxx/archi/archimate/-/jobs/194581#L32) of 72
[Jasper Reports] Generating Image for View [33](https://xxx/archi/archimate/-/jobs/194581#L33) of 72
[Jasper Reports] Generating Image for View [34](https://xxx/archi/archimate/-/jobs/194581#L34) of 72
[Jasper Reports] Generating Image for View [35](https://xxx/archi/archimate/-/jobs/194581#L35) of 72
[Jasper Reports] Generating Image for View [36](https://xxx/archi/archimate/-/jobs/194581#L36) of 72
[Jasper Reports] Generating Image for View [37](https://xxx/archi/archimate/-/jobs/194581#L37) of 72
[Jasper Reports] Generating Image for View [38](https://xxx/archi/archimate/-/jobs/194581#L38) of 72
[Jasper Reports] Generating Image for View [39](https://xxx/archi/archimate/-/jobs/194581#L39) of 72
[Jasper Reports] Generating Image for View [40](https://xxx/archi/archimate/-/jobs/194581#L40) of 72
[Jasper Reports] Generating Image for View [41](https://xxx/archi/archimate/-/jobs/194581#L41) of 72
[Jasper Reports] Generating Image for View [42](https://xxx/archi/archimate/-/jobs/194581#L42) of 72
[Jasper Reports] Generating Image for View [43](https://xxx/archi/archimate/-/jobs/194581#L43) of 72
[Jasper Reports] Generating Image for View [44](https://xxx/archi/archimate/-/jobs/194581#L44) of 72
[Jasper Reports] Generating Image for View [45](https://xxx/archi/archimate/-/jobs/194581#L45) of 72
[Jasper Reports] Generating Image for View [46](https://xxx/archi/archimate/-/jobs/194581#L46) of 72
[Jasper Reports] Generating Image for View [47](https://xxx/archi/archimate/-/jobs/194581#L47) of 72
[Jasper Reports] Generating Image for View [48](https://xxx/archi/archimate/-/jobs/194581#L48) of 72
[Jasper Reports] Generating Image for View [49](https://xxx/archi/archimate/-/jobs/194581#L49) of 72
[Jasper Reports] Generating Image for View [50](https://xxx/archi/archimate/-/jobs/194581#L50) of 72
[Jasper Reports] Generating Image for View [51](https://xxx/archi/archimate/-/jobs/194581#L51) of 72
[Jasper Reports] Generating Image for View [52](https://xxx/archi/archimate/-/jobs/194581#L52) of 72
[Jasper Reports] Generating Image for View [53](https://xxx/archi/archimate/-/jobs/194581#L53) of 72
[Jasper Reports] Generating Image for View [54](https://xxx/archi/archimate/-/jobs/194581#L54) of 72
[Jasper Reports] Generating Image for View [55](https://xxx/archi/archimate/-/jobs/194581#L55) of 72
[Jasper Reports] Generating Image for View [56](https://xxx/archi/archimate/-/jobs/194581#L56) of 72
[Jasper Reports] Generating Image for View [57](https://xxx/archi/archimate/-/jobs/194581#L57) of 72
[Jasper Reports] Generating Image for View [58](https://xxx/archi/archimate/-/jobs/194581#L58) of 72
[Jasper Reports] Generating Image for View [59](https://xxx/archi/archimate/-/jobs/194581#L59) of 72
[Jasper Reports] Generating Image for View [60](https://xxx/archi/archimate/-/jobs/194581#L60) of 72
[Jasper Reports] Generating Image for View [61](https://xxx/archi/archimate/-/jobs/194581#L61) of 72
[Jasper Reports] Generating Image for View [62](https://xxx/archi/archimate/-/jobs/194581#L62) of 72
[Jasper Reports] Generating Image for View [63](https://xxx/archi/archimate/-/jobs/194581#L63) of 72
[Jasper Reports] Generating Image for View [64](https://xxx/archi/archimate/-/jobs/194581#L64) of 72
[Jasper Reports] Generating Image for View [65](https://xxx/archi/archimate/-/jobs/194581#L65) of 72
[Jasper Reports] Generating Image for View [66](https://xxx/archi/archimate/-/jobs/194581#L66) of 72
[Jasper Reports] Generating Image for View [67](https://xxx/archi/archimate/-/jobs/194581#L67) of 72
[Jasper Reports] Generating Image for View [68](https://xxx/archi/archimate/-/jobs/194581#L68) of 72
[Jasper Reports] Generating Image for View [69](https://xxx/archi/archimate/-/jobs/194581#L69) of 72
[Jasper Reports] Generating Image for View [70](https://xxx/archi/archimate/-/jobs/194581#L70) of 72
[Jasper Reports] Generating Image for View [71](https://xxx/archi/archimate/-/jobs/194581#L71) of [72](https://xxx/archi/archimate/-/jobs/194581#L72)
[Jasper Reports] Generating Image for View 72 of 72
[Jasper Reports] Creating Jasper Print...
[Jasper Reports] Compiling...
[Jasper Reports] Filling...
[Jasper Reports] Generating PDF...
[Jasper Reports] Generating DOCX...
[Jasper Reports] Cleaning up...
[Jasper Reports] Reports Created!
[HTMLReport] Creating report from 'TDNG - Architecture' to /builds/xxx/archi/archimate/public
[HTMLReport] Copying files...
[HTMLReport] Copying hints...
[HTMLReport] Creating files...
[HTMLReport] Generating image for View 1 of 72
[HTMLReport] Generating image for View 2 of 72
[HTMLReport] Generating image for View 3 of 72
[HTMLReport] Generating image for View 4 of 72
[HTMLReport] Generating image for View 5 of 72
[HTMLReport] Generating image for View 6 of 72
[HTMLReport] Generating image for View 7 of 72
[HTMLReport] Generating image for View 8 of 72
[HTMLReport] Generating image for View 9 of 72
[HTMLReport] Generating image for View 10 of 72
[HTMLReport] Generating image for View 11 of 72
[HTMLReport] Generating image for View 12 of 72
[HTMLReport] Generating image for View 13 of 72
[HTMLReport] Generating image for View 14 of 72
[HTMLReport] Generating image for View 15 of 72
[HTMLReport] Generating image for View 16 of 72
[HTMLReport] Generating image for View 17 of 72
[HTMLReport] Generating image for View 18 of 72
[HTMLReport] Generating image for View 19 of 72
[HTMLReport] Generating image for View 20 of 72
[HTMLReport] Generating image for View 21 of 72
[HTMLReport] Generating image for View 22 of 72
[HTMLReport] Generating image for View 23 of 72
[HTMLReport] Generating image for View 24 of 72
[HTMLReport] Generating image for View 25 of 72
[HTMLReport] Generating image for View 26 of 72
[HTMLReport] Generating image for View 27 of 72
[HTMLReport] Generating image for View 28 of 72
[HTMLReport] Generating image for View 29 of 72
[HTMLReport] Generating image for View 30 of 72
[HTMLReport] Generating image for View 31 of 72
[HTMLReport] Generating image for View 32 of 72
[HTMLReport] Generating image for View 33 of 72
[HTMLReport] Generating image for View 34 of 72
[HTMLReport] Generating image for View 35 of 72
[HTMLReport] Generating image for View 36 of 72
[HTMLReport] Generating image for View 37 of 72
[HTMLReport] Generating image for View 38 of 72
[HTMLReport] Generating image for View 39 of 72
[HTMLReport] Generating image for View 40 of 72
[HTMLReport] Generating image for View 41 of 72
[HTMLReport] Generating image for View 42 of 72
[HTMLReport] Generating image for View 43 of 72
[HTMLReport] Generating image for View 44 of 72
[HTMLReport] Generating image for View 45 of 72
[HTMLReport] Generating image for View 46 of 72
[HTMLReport] Generating image for View 47 of 72
[HTMLReport] Generating image for View 48 of 72
[HTMLReport] Generating image for View 49 of 72
[HTMLReport] Generating image for View 50 of 72
[HTMLReport] Generating image for View 51 of 72
[HTMLReport] Generating image for View 52 of 72
[HTMLReport] Generating image for View 53 of 72
[HTMLReport] Generating image for View 54 of 72
[HTMLReport] Generating image for View 55 of 72
[HTMLReport] Generating image for View 56 of 72
[HTMLReport] Generating image for View 57 of 72
[HTMLReport] Generating image for View 58 of 72
[HTMLReport] Generating image for View 59 of 72
[HTMLReport] Generating image for View 60 of 72
[HTMLReport] Generating image for View 61 of 72
[HTMLReport] Generating image for View 62 of 72
[HTMLReport] Generating image for View 63 of 72
[HTMLReport] Generating image for View 64 of 72
[HTMLReport] Generating image for View 65 of 72
[HTMLReport] Generating image for View 66 of 72
[HTMLReport] Generating image for View 67 of 72
[HTMLReport] Generating image for View 68 of 72
[HTMLReport] Generating image for View 69 of 72
[HTMLReport] Generating image for View 70 of 72
[HTMLReport] Generating image for View 71 of 72
[HTMLReport] Generating image for View 72 of 72
[HTMLReport] Creating files...
[HTMLReport] Finalising...
context [/modelreport /expandFolder /_sub1 /expandFolder /_sub2 /classesFromProperties /_sub3] 1:25 no such template: /IGNORE_ERROR_
[HTMLReport] Report generated!
[Core] Saved model to '/builds/xxx/archi/archimate/public/XXX - Architecture
Green Check
Red Cross
Warning.archimate'
Done. Reports saved to /builds/xxx/archi/archimate/public
sed: -e expression #1, char 56: extra characters after command
Cleaning up project directory and file based variables
00:01
ERROR: Job failed: exit code 1
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 named XXX - 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.
Bitbucket uses x-token-auth
instead of x-access-token
in the git URL (https://support.atlassian.com/bitbucket-cloud/docs/using-access-tokens/). The following change should work, but I am unable to test it:
if re_match "${GIT_REPOSITORY:-}" '^https://github.com/'; then
_auth="x-access-token:$GIT_TOKEN"
else
_auth="oauth2:$GIT_TOKEN"
fi
if re_match "${GIT_REPOSITORY:-}" '^https://github.com/'; then
_auth="x-access-token:$GIT_TOKEN"
elif re_match "${GIT_REPOSITORY:-}" '^https://bitbucket.org/'; then
_auth="x-token-auth:$GIT_TOKEN"
else
_auth="oauth2:$GIT_TOKEN"
fi
Hi! Is it possible to extend functionality to use a custom report template?
Archi cli accepts an argument --jasper.template
for passing full path to the main.jrxml Jasper Reports template file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.