Merge branch 'Sonar_Doc_Tool_Readd' into 'master'

Sonar doc tool readd

See merge request gilden/ci/gitlab-ci-templates!17
This commit is contained in:
Wolfram Gulde 2021-07-27 09:18:53 +00:00
commit 8e9d0310e8
5 changed files with 76 additions and 2 deletions

View File

@ -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[]
----

View File

@ -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[]
----

View File

@ -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]

View File

@ -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

14
tool-sonar7.gitlab-ci.yml Normal file
View File

@ -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