Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
formcycle-plugin
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
formcycle-plugin
Commits
9241a12a
Commit
9241a12a
authored
8 months ago
by
OZGCloud
Browse files
Options
Downloads
Plain Diff
Merge pull request 'OZG-4833 dependency track' (#32) from OZG-4833-use-dependency-track into master
Reviewed-on:
https://git.ozg-sh.de/ozgcloud-app/formcycle-plugin/pulls/32
parents
6f0d5336
873f693b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Jenkinsfile
+16
-16
16 additions, 16 deletions
Jenkinsfile
pom.xml
+33
-0
33 additions, 0 deletions
pom.xml
with
49 additions
and
16 deletions
Jenkinsfile
+
16
−
16
View file @
9241a12a
...
...
@@ -109,22 +109,22 @@ pipeline {
}
}
// TODO aktuell dauert es viel zu lange und wird am Ende einfach abgebrochen
//
stage ('OWASP Dependency-Check Vulnerabilities')
{
//
s
teps
{
//
dependencyCheck additionalArguments: '''
// -o "./"
//
-s "./"
//
-f "ALL"
// -d /dependency-check-data
//
--suppression dependency-check-supressions.xml
//
--disableKnownExploited
//
--disableArchive
//
--prettyPrint''', odcInstallation: 'dependency-check-owasp'
//
//
dependencyCheckPublisher pattern: 'dependency-check-report.xml'
//
}
//
}
stage
(
'Deploy SBOM to DependencyTrack'
)
{
steps
{
s
cript
{
IMAGE_TAG
=
"${env.BRANCH_NAME}-${getPomVersion('pom.xml')}"
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=${IMAGE_TAG} -Ddependency-track.dependencyTrackBaseUrl=https://dependency-track.ozg-sh.de"
}
}
}
}
}
}
stage
(
'Deploy to Nexus'
){
steps
{
...
...
This diff is collapsed.
Click to expand it.
pom.xml
+
33
−
0
View file @
9241a12a
...
...
@@ -31,6 +31,10 @@
<maven-assembly-plugin.version>
3.2.0
</maven-assembly-plugin.version>
<maven-clean-plugin.version>
3.1.0
</maven-clean-plugin.version>
<maven-compiler-plugin.version>
3.8.1
</maven-compiler-plugin.version>
<!-- dependency track -->
<dependency-track-maven-plugin.version>
1.7.0
</dependency-track-maven-plugin.version>
<cyclonedx-maven-plugin.version>
2.7.11
</cyclonedx-maven-plugin.version>
</properties>
<dependencyManagement>
...
...
@@ -113,6 +117,21 @@
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>
io.github.pmckeown
</groupId>
<artifactId>
dependency-track-maven-plugin
</artifactId>
<version>
${dependency-track-maven-plugin.version}
</version>
<configuration>
<dependencyTrackBaseUrl>
https://dependency-track.ozg-sh.de
</dependencyTrackBaseUrl>
<failOnError>
true
</failOnError>
<createProject>
true
</createProject>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<!-- Configure the compilation process. At least Java 11 is required. -->
<plugin>
...
...
@@ -208,6 +227,20 @@
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
${maven-surefire-plugin.version}
</version>
</plugin>
<plugin>
<groupId>
org.cyclonedx
</groupId>
<artifactId>
cyclonedx-maven-plugin
</artifactId>
<version>
${cyclonedx-maven-plugin.version}
</version>
<executions>
<execution>
<phase>
package
</phase>
<goals>
<goal>
makeAggregateBom
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
...
...
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