Skip to content

Commit

Permalink
Merge branch 'master' of github.com:DSD-DBS/Capella-IFE-sample
Browse files Browse the repository at this point in the history
  • Loading branch information
vik378 committed Nov 19, 2024
2 parents a9e09c7 + f881299 commit 2fbd6e1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 43 deletions.
53 changes: 11 additions & 42 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
include:
- remote: https://raw.githubusercontent.com/DSD-DBS/capella-dockerimages/${CAPELLA_DOCKER_IMAGES_REVISION}/ci-templates/gitlab/diagram-cache.yml
- remote: https://raw.githubusercontent.com/DSD-DBS/py-capellambse/${CAPELLAMBSE_REVISION}/ci-templates/gitlab/model-badge.yml
# - project: se-toolchain/capella-tools/rm-bridge/capella-polarion-mirror
# ref: main
# file: "/ci-templates/gitlab/synchronise_elements.yml"
- project: se-toolchain/capella-tools/rm-bridge/capella-polarion-mirror
ref: main
file: "/ci-templates/gitlab/synchronise_elements.yml"
- project: se-toolchain/capella-tools/rm-bridge/capella-polarion-mirror
ref: main
file: "/ci-templates/gitlab/render_documents.yaml"

default:
tags:
Expand All @@ -23,47 +26,13 @@ variables:
CAPELLA_VERSION: 7.0.0
ENTRYPOINT: "In-Flight Entertainment System.aird"
CAPELLA2POLARION_PROJECT_ID: inflighttest
CAPELLA2POLARION_MODEL_JSON: '{"path": "In-Flight Entertainment System.aird", "diagram_cache": "./diagram_cache"}'
CAPELLA2POLARION_CONFIG: capella2polarion_config.yaml
CAPELLA2POLARION_CAPELLA_MODEL: '{"path": "In-Flight Entertainment System.aird", "diagram_cache": "./diagram_cache"}'
CAPELLA2POLARION_SYNCHRONIZE_CONFIG: capella2polarion_config.yaml
CAPELLA2POLARION_VERSION: "1.2.3"
CAPELLA2POLARION_GROUPED_LINKS_CUSTOM_FIELDS: 1
CAPELLA2POLARION_DEBUG: 1
CAPELLA2POLARION_FORCE_UPDATE: 0
CAPELLAMBSE_PUSH_MODEL_BADGE: 0
CAPELLA2POLARION_DOCUMENT_CONFIG: capella2polarion_document_config.yaml.j2
CAPELLA2POLARION_OVERWRITE_LAYOUTS: 1
CAPELLA2POLARION_OVERWRITE_NUMBERING: 1

capella2polarion_synchronise_elements:
needs:
- job: update_capella_diagram_cache
artifacts: true

script:
- pip install git+https://github.com/DSD-DBS/[email protected]
- >
python \
-m capella2polarion \
$([[ $CAPELLA2POLARION_DEBUG -eq 1 ]] && echo '--debug') \
--polarion-project-id=${CAPELLA2POLARION_PROJECT_ID:?} \
--capella-model="${CAPELLA2POLARION_MODEL_JSON:?}" \
synchronize \
--synchronize-config=${CAPELLA2POLARION_CONFIG:?} \
$([[ $CAPELLA2POLARION_FORCE_UPDATE -eq 1 ]] && echo '--force-update') \
${CAPELLA2POLARION_TYPE_PREFIX:+--type-prefix="$CAPELLA2POLARION_TYPE_PREFIX"} \
${CAPELLA2POLARION_ROLE_PREFIX:+--role-prefix="$CAPELLA2POLARION_ROLE_PREFIX"}
capella2polarion_render_documents:
needs:
- job: capella2polarion_synchronise_elements

script:
- pip install git+https://github.com/DSD-DBS/[email protected]
- >
python \
-m capella2polarion \
$([[ $CAPELLA2POLARION_DEBUG -eq 1 ]] && echo '--debug') \
--polarion-project-id=${CAPELLA2POLARION_PROJECT_ID:?} \
--capella-model="${CAPELLA2POLARION_MODEL_JSON:?}" \
render-documents \
$([[ $CAPELLA2POLARION_OVERWRITE_LAYOUTS -eq 1 ]] && echo '--overwrite-layouts') \
$([[ $CAPELLA2POLARION_OVERWRITE_NUMBERING -eq 1 ]] && echo '--overwrite-numbering') \
--document-rendering-config="${CAPELLA2POLARION_DOCUMENT_CONFIG:?}"
CAPELLAMBSE_PUSH_MODEL_BADGE: 0
1 change: 0 additions & 1 deletion jinja/element_templates/component_exchange.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,3 @@ The {{ linked_name_with_icon(source) | safe }} shall provide {{ linked_name_with
{% endfor %}
</tbody>
</table>

2 changes: 2 additions & 0 deletions model-complexity-badge.svg.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SPDX-FileCopyrightText: Copyright DB InfraGO AG
SPDX-License-Identifier: Apache-2.0

0 comments on commit 2fbd6e1

Please sign in to comment.