Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
muk-postfach
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
muk-postfach
Commits
bdc79cd6
Commit
bdc79cd6
authored
2 months ago
by
Bastian Heppener
Browse files
Options
Downloads
Plain Diff
Merge branch 'ozg-7492-sbom-dependency-tracker' into 'main'
Ozg 7492 sbom dependency tracker See merge request
!1
parents
c9b0ec3e
ddc7142e
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1
Ozg 7492 sbom dependency tracker
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Jenkinsfile
+16
-13
16 additions, 13 deletions
Jenkinsfile
with
16 additions
and
13 deletions
Jenkinsfile
+
16
−
13
View file @
bdc79cd6
...
...
@@ -92,20 +92,23 @@ pipeline {
}
}
stage
(
'OWASP Dependency-Check Vulnerabilities'
)
{
stage
(
'Deploy SBOM to DependencyTrack'
)
{
when
{
anyOf
{
branch
'main'
branch
'release'
}
}
steps
{
dependencyCheck
additionalArguments:
'''
-o "./"
-s "./"
-f "ALL"
-d /dependency-check-data
--suppression dependency-check-supressions.xml
--noupdate
--disableKnownExploited
--disableArchive
--prettyPrint'''
,
odcInstallation:
'dependency-check-owasp'
dependencyCheckPublisher
pattern:
'dependency-check-report.xml'
script
{
configFileProvider
([
configFile
(
fileId:
'maven-settings'
,
variable:
'MAVEN_SETTINGS'
)])
{
withCredentials
([
string
(
credentialsId:
'dependency-track-api-key'
,
variable:
'API_KEY'
)])
{
catchError
(
buildResult:
'UNSTABLE'
,
stageResult:
'FAILURE'
)
{
sh
"mvn --no-transfer-progress -s $MAVEN_SETTINGS io.github.pmckeown:dependency-track-maven-plugin:upload-bom -Ddependency-track.apiKey=$API_KEY -Ddependency-track.projectVersion=${env.BRANCH_NAME} -Ddependency-track.dependencyTrackBaseUrl=https://dependency-track.ozg-sh.de"
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment