Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vorgang-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
vorgang-manager
Commits
edafed48
Commit
edafed48
authored
4 years ago
by
OZGCloud
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of git.ozg-sh.de:mgm/pluto
parents
5c54a066
5f380e2b
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Jenkinsfile
+43
-4
43 additions, 4 deletions
Jenkinsfile
pluto-server/pom.xml
+2
-0
2 additions, 0 deletions
pluto-server/pom.xml
pluto-server/src/main/java/de/itvsh/ozg/pluto/vorgang/Vorgang.java
+1
-1
1 addition, 1 deletion
...ver/src/main/java/de/itvsh/ozg/pluto/vorgang/Vorgang.java
with
46 additions
and
5 deletions
Jenkinsfile
+
43
−
4
View file @
edafed48
...
...
@@ -7,6 +7,10 @@ pipeline {
}
}
environment
{
BLUE_OCEAN_URL
=
"https://jenkins.ozg-sh.de/blue/organizations/jenkins/pluto/detail/${env.BRANCH_NAME}/${env.BUILD_NUMBER}/pipeline"
}
options
{
timeout
(
time:
1
,
unit:
'HOURS'
)
disableConcurrentBuilds
()
...
...
@@ -23,7 +27,7 @@ pipeline {
sh
'mvn --version'
dir
(
'pluto-interface'
)
{
configFileProvider
([
configFile
(
fileId:
'maven-settings'
,
variable:
'MAVEN_SETTINGS'
)])
{
sh
'mvn -s $MAVEN_SETTINGS clean install'
sh
'mvn -s $MAVEN_SETTINGS clean install
-DskipTests -Dmaven.wagon.http.retryHandler.count=3
'
}
}
}
...
...
@@ -60,7 +64,7 @@ pipeline {
sh
'mvn --version'
dir
(
'pluto-server'
)
{
configFileProvider
([
configFile
(
fileId:
'maven-settings'
,
variable:
'MAVEN_SETTINGS'
)])
{
sh
'mvn -s $MAVEN_SETTINGS clean install spring-boot:build-image -D
spring-boot.build-image.imageName=docker.ozg-sh.de/pluto:build-latest
'
sh
'mvn -s $MAVEN_SETTINGS clean install
-DskipTests
spring-boot:build-image -D
maven.wagon.http.retryHandler.count=3
'
}
}
}
...
...
@@ -119,11 +123,46 @@ pipeline {
}
}
}
stage
(
'Deploy Pluto'
)
{
when
{
anyOf
{
branch
'master'
branch
'release'
}
}
steps
{
script
{
FAILED_STAGE
=
env
.
STAGE_NAME
}
container
(
"kubectl"
){
script
{
if
(
env
.
BRANCH_NAME
==
'release'
)
{
sh
'kubectl rollout restart deployment/pluto -n sh-kiel-test'
sh
'kubectl rollout status deployment/pluto -n sh-kiel-test'
}
if
(
env
.
BRANCH_NAME
==
'master'
)
{
sh
'kubectl rollout restart deployment/pluto -n sh-kiel-dev'
sh
'kubectl rollout status deployment/pluto -n sh-kiel-dev'
}
}
}
}
}
}
post
{
always
{
junit
testResults:
'**/target/surefire-reports/*.xml'
,
skipPublishingChecks:
true
// always{
// junit testResults: '**/target/surefire-reports/*.xml', skipPublishingChecks: true
// }
failure
{
script
{
if
(
env
.
BRANCH_NAME
==
'master'
)
{
slackSend
(
color:
"danger"
,
message:
"Pluto: Build Failed. Stage: ${FAILED_STAGE} Build-ID: <${BLUE_OCEAN_URL}|${env.BUILD_NUMBER}>"
)
}
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pluto-server/pom.xml
+
2
−
0
View file @
edafed48
...
...
@@ -26,6 +26,8 @@
<lorem.version>
2.1
</lorem.version>
<faker.version>
1.0.2
</faker.version>
<spring-admin.version>
2.3.1
</spring-admin.version>
<spring-boot.build-image.imageName>
docker.ozg-sh.de/pluto:build-latest
</spring-boot.build-image.imageName>
</properties>
<dependencies>
...
...
This diff is collapsed.
Click to expand it.
pluto-server/src/main/java/de/itvsh/ozg/pluto/vorgang/Vorgang.java
+
1
−
1
View file @
edafed48
...
...
@@ -30,7 +30,7 @@ public class Vorgang {
private
long
version
;
@Builder
.
Default
private
ZonedDateTime
createdAt
=
ZonedDateTime
.
now
(
ZoneId
.
of
(
"UTC"
))
.
withNano
(
0
)
;
private
ZonedDateTime
createdAt
=
ZonedDateTime
.
now
(
ZoneId
.
of
(
"UTC"
));
private
String
name
;
@Builder
.
Default
...
...
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