Changes for page Jenkins Shared Library

Last modified by Boris Folgmann on 2025/11/03 09:41

From version 3.4
edited by Achim Mahnke
on 2025/10/27 12:56
Change comment: There is no comment for this version
To version 6.4
edited by Boris Folgmann
on 2025/11/03 09:05
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.achimmahnket-systemscom
1 +xwiki:XWiki.borisfolgmannt-systemscom
Content
... ... @@ -128,9 +128,12 @@
128 128  )))|(((
129 129  npm command to execute for building Node.JS projects.
130 130  )))
131 +|= |go|'go'|Golang version to use.
132 +Refers to a symbolic name of a go tool configuration in Jenkins.
131 131  |= |goBuildCommand|(((
132 132  'go build -o app cmd/server/main.go'
133 -)))|go build step. Must be over
135 +)))|go build run. Should be overridden for your project.
136 +|= |goTestCommand|'gotestsum ~-~-format pkgname ~-~-junitfile report.xml ~-~- -failfast -race -coverprofile=coverage.out -tags=test ./...'|Runs gotestsum tool which in turn calls 'go test' for all packages in the project. Should be overridden for your project. The gotestsum tool is available out-of-the-box and produces a report file which is picked up by Jenkins automatically.
134 134  |=(% rowspan="10" %)(((
135 135  Docker build
136 136  )))|(((
... ... @@ -309,9 +309,11 @@
309 309  |(((
310 310  helmRegistry
311 311  )))|(((
312 -Nexus registry of your DOaaS instance
315 +Helm registry of your DOaaS instance, which is usally 'https:~/~/registry-CUSTOMER.devops.t-systems.net/chartrepo/PROJECTKEY'
313 313  )))|(((
314 -Name of registry to which the packaged Helm chart is uploaded.
317 +Helm registry to which the packaged Helm chart is uploaded.
318 +
319 +
315 315  )))
316 316  |(((
317 317  helmRegistryCredentialsId
... ... @@ -350,7 +350,7 @@
350 350  )))|(((
351 351  Id of the Jenkins Credentials for signers private keyfile.
352 352  )))
353 -|=(% colspan="1" rowspan="12" %)(((
358 +|=(% colspan="1" rowspan="13" %)(((
354 354  Static Source Code Analysis
355 355  )))|(((
356 356  checkstyleConfig
... ... @@ -383,10 +383,13 @@
383 383  )))|(((
384 384  Defines which named dependency-check tool should be used.
385 385  )))
391 +|dependencyCheckMvnArgs|'-DassemblyAnalyzerEnabled=false'|Additional arguments which are be passed to dependency-check for maven projects.(((
392 +See <a hre'>Dependency Check Maven Configuration</a> for more information.
393 +)))
386 386  |(((
387 387  dependencyCheckArgs
388 388  )))|(((
389 -'~-~-disableAssembly ~-~-nvdValidForHours 720'
397 +'~-~-disableAssembly'
390 390  )))|(((
391 391  Addtional arguments which are be passed to dependency-check. See [[Dependency>>url:https://jeremylong.github.io/DependencyCheck/dependency-check-cli/arguments.html||shape="rect"]][[ Check CLI Arguments>>url:https://jeremylong.github.io/DependencyCheck/dependency-check-cli/arguments.html||shape="rect"]] for more information.
392 392  )))
... ... @@ -448,6 +448,16 @@
448 448  |sonarQualityGate| |Sets the desired quality gate to use for the scan result in SonarQube.
449 449  If not specified, the quality gate is not changed.
450 450  As a default, SonarQube will use the quality gate "Sonar way" for new scan results.
459 +|=(% colspan="1" rowspan="2" %)Dependency Track|depTrackCredentialsId|'PROJECTKEY-deptrack-projectcreator'|(((
460 +Id of the Jenkins Credential which has to be used to authenticate to Dependency Track for publishing the SBOM.
461 +)))
462 +|depTrackClassifier|'application'|The component type (e.g. application, library, firmware, ...) that should be set in the SBOM file.
463 +Will be later shown as classifier for the project in Dependency Track.
464 +See [[CycloneDX Metadata Component Type>>https://cyclonedx.org/docs/1.6/json/#metadata_component_type]] for supported values.
465 +|=(% colspan="1" rowspan="2" %)Trivy|trivySeverity|'High'|String which sets the minimum severity of Trivy findings that has to be reached to mark the Trivy Results stage as unstable.
466 +Possible values are: "None", "Unknown", "Negligible", "Low", "Medium", "High", "Critical".
467 +|trivyBuildResult|'SUCCESS'|String which sets the overall build result when the result of the Trivy scan reaches trivyServerity.
468 +Possible values are: "SUCCESS", "UNSTABLE" or "FAILURE"
451 451  |=(% rowspan="7" %)(((
452 452  Deployment
453 453  )))|(((