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:
commit
8e9d0310e8
@ -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[]
|
||||||
|
----
|
||||||
17
documentation/chapters/templates/tool-sonar7.adoc
Normal file
17
documentation/chapters/templates/tool-sonar7.adoc
Normal 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[]
|
||||||
|
----
|
||||||
@ -35,20 +35,24 @@ toc::[]
|
|||||||
include::chapters/generalInformation.adoc[leveloffset=1]
|
include::chapters/generalInformation.adoc[leveloffset=1]
|
||||||
|
|
||||||
== Container Templates
|
== Container Templates
|
||||||
|
|
||||||
include::chapters/templates/container-publish.adoc[leveloffset=2]
|
include::chapters/templates/container-publish.adoc[leveloffset=2]
|
||||||
include::chapters/templates/container-scan.adoc[leveloffset=2]
|
include::chapters/templates/container-scan.adoc[leveloffset=2]
|
||||||
|
|
||||||
== Versionierungs Templates
|
== 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
|
=== Templates
|
||||||
|
|
||||||
include::chapters/templates/push-tag-and-version-template.adoc[leveloffset=3]
|
include::chapters/templates/push-tag-and-version-template.adoc[leveloffset=3]
|
||||||
include::chapters/templates/set-version-template.adoc[leveloffset=3]
|
include::chapters/templates/set-version-template.adoc[leveloffset=3]
|
||||||
include::chapters/templates/release-template.adoc[leveloffset=3]
|
include::chapters/templates/release-template.adoc[leveloffset=3]
|
||||||
|
|
||||||
=== Pipeline
|
=== Pipeline
|
||||||
|
|
||||||
include::chapters/pipelines/update-version-pipeline.adoc[leveloffset=3]
|
include::chapters/pipelines/update-version-pipeline.adoc[leveloffset=3]
|
||||||
|
|
||||||
== NPM Templates
|
== NPM Templates
|
||||||
@ -66,4 +70,5 @@ include::chapters/templates/maven-verify-template.adoc[leveloffset=2]
|
|||||||
|
|
||||||
== weitere Gilden-Tools
|
== 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]
|
||||||
|
|||||||
27
tool-documentation.gitlab-ci.yml
Normal file
27
tool-documentation.gitlab-ci.yml
Normal 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
14
tool-sonar7.gitlab-ci.yml
Normal 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
|
||||||
Loading…
Reference in New Issue
Block a user