Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hello-world-spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Josh Steinberg
hello-world-spring-boot
Commits
5238c35c
Commit
5238c35c
authored
Jun 15, 2022
by
Josh Steinberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit jenkinsfile adn pom plugins
parent
2c97f41c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
Jenkinsfile
Jenkinsfile
+13
-4
pom.xml
pom.xml
+5
-0
No files found.
Jenkinsfile
View file @
5238c35c
...
...
@@ -20,10 +20,19 @@ pipeline {
}
stage
(
'Build'
)
{
steps
{
sh
'mvn -Dmaven.test.failure.ignore=false install'
sh
'mvn -B -DskipTests clean package'
}
}
stage
(
'Test'
){
steps
{
sh
'mvn test'
}
post
{
always
{
junit
'target/surefire-reports/*.xml'
}
}
}
stage
(
'Sonarqube'
){
steps
{
withSonarQubeEnv
(
'sonar'
){
...
...
@@ -48,7 +57,7 @@ pipeline {
artifactExists
=
fileExists
artifactPath
;
if
(
artifactExists
)
{
echo
"*** File: ${artifactPath}, group: ${pom.groupId}, packaging: ${pom.packaging}, version ${pom.version}"
;
nexusArtifactUploader
{
nexusArtifactUploader
(
nexusVersion:
NEXUS_VERSION
,
protocol:
NEXUS_PROTOCOL
,
nexusUrl:
NEXUS_URL
,
...
...
@@ -66,7 +75,7 @@ pipeline {
file:
"pom.xml"
,
type:
"pom"
]
]
}
;
)
;
}
else
{
error
"*** File: ${artifactPath}, could not be found"
;
}
...
...
pom.xml
View file @
5238c35c
...
...
@@ -47,6 +47,11 @@
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-surefire-plugin
</artifactId>
<version>
3.0.0-M7
</version>
</plugin>
</plugins>
<pluginManagement>
<plugins>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment