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
f361b36c
Commit
f361b36c
authored
Jun 14, 2022
by
Josh Steinberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit jenkinsfile
parent
7720d48d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
38 deletions
+22
-38
Jenkinsfile
Jenkinsfile
+22
-38
No files found.
Jenkinsfile
View file @
f361b36c
pipeline
{
pipeline
{
agent
none
agent
any
triggers
{
pollSCM
'H/10 * * * *'
}
options
{
disableConcurrentBuilds
()
buildDiscarder
(
logRotator
(
numToKeepStr:
'14'
))
}
stages
{
stages
{
stage
(
"test: baseline (jdk8)"
)
{
stage
(
'Git Checkout'
)
{
agent
{
steps
{
docker
{
echo
"BranchName: ${branchName}"
image
'adoptopenjdk/openjdk8:latest'
echo
"Checking out repository"
args
'-v $HOME/.m2:/tmp/jenkins-home/.m2'
git
branch:
"${branchName}"
,
url:
"https://gitlab.mynisum.com/jsteinberg/hello-world-spring-boot.git"
}
echo
"Checkout complete"
}
}
options
{
timeout
(
time:
30
,
unit:
'MINUTES'
)
}
}
steps
{
stage
(
""
)
sh
'test/run.sh'
stage
(
'Test'
)
{
}
steps
{
}
withMaven
{
sh
'./mvnw test'
}
}
post
{
}
changed
{
post
{
script
{
always
{
slackSend
(
junit
'target/surefire-reports/*.xml'
color:
(
currentBuild
.
currentResult
==
'SUCCESS'
)
?
'good'
:
'danger'
,
}
channel:
'#sagan-content'
,
}
message:
"${currentBuild.fullDisplayName} - `${currentBuild.currentResult}`\n${env.BUILD_URL}"
)
}
emailext
(
subject:
"[${currentBuild.fullDisplayName}] ${currentBuild.currentResult}"
,
mimeType:
'text/html'
,
recipientProviders:
[[
$class
:
'CulpritsRecipientProvider'
],
[
$class
:
'RequesterRecipientProvider'
]],
body:
"<a href=\"${env.BUILD_URL}\">${currentBuild.fullDisplayName} is reported as ${currentBuild.currentResult}</a>"
)
}
}
}
}
}
}
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