diff --git a/documentation/chapters/templates/tool-documentation-tool.adoc b/documentation/chapters/templates/tool-documentation-tool.adoc new file mode 100644 index 0000000..1daff7d --- /dev/null +++ b/documentation/chapters/templates/tool-documentation-tool.adoc @@ -0,0 +1,11 @@ +:sourcedir: ../../../ + += Dokumentation-Tool-template + +Das Dokumentation-Tool template. +Mehr Details und die Variablendokumentation sind zu finden hier: https://gitlab.exxcellent.de/gilden/ci/exxcellent-documentation-tool[Gilde CI/CD: exxcellent-documentation-tool]. + +.dokumentation-tool +---- +include::{sourcedir}/tool-documentation.gitlab-ci.yml[] +---- \ No newline at end of file diff --git a/documentation/chapters/templates/tool-sonar7.adoc b/documentation/chapters/templates/tool-sonar7.adoc new file mode 100644 index 0000000..742c664 --- /dev/null +++ b/documentation/chapters/templates/tool-sonar7.adoc @@ -0,0 +1,17 @@ +:sourcedir: ../../../ + += sonar-template + +Ruft den Sonar Job für das Projekt auf. +Mehr Details zu finden hier: https://gitlab.exxcellent.de/gilden/ci/exxcellent-sonar-tool[Gilde CI/CD: exxcellent-sonar-tool]. + +.Variables +|=== +|Name |Description | Default Value +|SONAR_PROJECT_KEY | Der Sonar-Projekt-Key. | "" +|=== + +.sonar-template +---- +include::{sourcedir}/tool-sonar7.gitlab-ci.yml[] +---- \ No newline at end of file diff --git a/documentation/document.adoc b/documentation/document.adoc index 8e69334..7833d81 100644 --- a/documentation/document.adoc +++ b/documentation/document.adoc @@ -35,20 +35,24 @@ toc::[] include::chapters/generalInformation.adoc[leveloffset=1] == Container Templates + include::chapters/templates/container-publish.adoc[leveloffset=2] include::chapters/templates/container-scan.adoc[leveloffset=2] == Versionierungs Templates -Im folgende sind erweiterte Templates zu finden für das https://gitlab.exxcellent.de/gilden/ci/exxcellent-increase-version-tool[Increase-Version-Tool] der CI Gilde. Es enthält auch eine Child-Pipeline-Konfiguration um den Versionierungsprozess innerhalb einer Pipeline darzustellen. +Im folgende sind erweiterte Templates zu finden für das https://gitlab.exxcellent.de/gilden/ci/exxcellent-increase-version-tool[Increase-Version-Tool] der CI Gilde. +Es enthält auch eine Child-Pipeline-Konfiguration um den Versionierungsprozess innerhalb einer Pipeline darzustellen. === Templates + include::chapters/templates/push-tag-and-version-template.adoc[leveloffset=3] include::chapters/templates/set-version-template.adoc[leveloffset=3] include::chapters/templates/release-template.adoc[leveloffset=3] === Pipeline + include::chapters/pipelines/update-version-pipeline.adoc[leveloffset=3] == NPM Templates @@ -66,4 +70,5 @@ include::chapters/templates/maven-verify-template.adoc[leveloffset=2] == weitere Gilden-Tools -Weitere Templates für die Tools der CI Gilde, sind in den jeweiligen Repos zu finden. +include::chapters/templates/tool-sonar7.adoc[leveloffset=2] +include::chapters/templates/tool-documentation-tool.adoc[leveloffset=2] diff --git a/tool-documentation.gitlab-ci.yml b/tool-documentation.gitlab-ci.yml new file mode 100644 index 0000000..f0b3cb4 --- /dev/null +++ b/tool-documentation.gitlab-ci.yml @@ -0,0 +1,27 @@ +.pages-template: + image: gitlab.exxcellent.de:4567/gilden/ci/exxcellent-documentation-tool:latest + variables: + DOCUMENT_ROOT: . + INPUT_FILE: "*.adoc" + INPUT_FILE_REVEALJS: "*.-revealjs.adoc" + IMAGES_DIR: images + OUTPUT_DIR: public + PRINT_TOC: "true" + PRINT_SECTNUMS: "true" + REV_NUMBER: $CI_COMMIT_SHORT_SHA + CONFLUENCE_URL: "https://www.exxcellent.de/confluence/rest/api/" + CREATE_SUB_PAGES: "true" + REMOVE_ORPHANS: "true" + COMPACT_CHAPTER_LABELS: "true" + PAGE_PREFIX: "" + PAGE_SUFFIX: "" + before_script: [ ] + script: + - generate --type html + - generate --type pdf + - publish + artifacts: + paths: [ public/ ] + rules: + - when: manual + diff --git a/tool-sonar7.gitlab-ci.yml b/tool-sonar7.gitlab-ci.yml new file mode 100644 index 0000000..3ddf48b --- /dev/null +++ b/tool-sonar7.gitlab-ci.yml @@ -0,0 +1,14 @@ +.sonar-template: + stage: test + image: gitlab.exxcellent.de:4567/gilden/ci/exxcellent-sonar-tool:latest + variables: + SONAR_HOST_URL: http://sonar7.exxcellent.de/sonar7 + SONAR_PROJECT_KEY: "" + SONAR_EXCLUSIONS: "**/target/**,**/src/test/**" + script: + - mvn test sonar:sonar + "-Dsonar.host.url=$SONAR_HOST_URL" + "-Dsonar.login=$SONAR_TOKEN" + "-Dsonar.projectKey=$SONAR_PROJECT_KEY" + "-Dsonar.exclusions=$SONAR_EXCLUSIONS" + - sonar-break-build \ No newline at end of file