Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zufi-manager
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
zufi-manager
Commits
00f9e98c
Commit
00f9e98c
authored
8 months ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
OZG-6710 [chore] fix Jenkinsfile
parent
2a16a62d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Jenkinsfile
+7
-3
7 additions, 3 deletions
Jenkinsfile
with
7 additions
and
3 deletions
Jenkinsfile
+
7
−
3
View file @
00f9e98c
...
...
@@ -33,7 +33,7 @@ pipeline {
def
rootVersion
=
getRootPomVersion
()
def
zufiManagerServerVersion
=
getParentPomVersion
(
'zufi-manager-server/pom.xml'
)
def
zufiManagerPvogVersion
=
getParentPomVersion
(
'zufi-manager-pvog/pom.xml'
)
def
zufiManagerInterfaceVersion
=
getP
arentP
omVersion
(
'zufi-manager-interface/pom.xml'
)
def
zufiManagerInterfaceVersion
=
getPomVersion
(
'zufi-manager-interface/pom.xml'
)
def
zufiManagerModelVersion
=
getParentPomVersion
(
'zufi-manager-model/pom.xml'
)
if
(
isReleaseBranch
())
{
...
...
@@ -436,8 +436,7 @@ Void performSonarCheck(String module) {
}
String
getRootPomVersion
()
{
def
rootPom
=
readMavenPom
file:
'pom.xml'
return
rootPom
.
version
return
getPomVersion
(
'pom.xml'
)
}
String
getParentPomVersion
(
String
filePath
)
{
...
...
@@ -445,6 +444,11 @@ String getParentPomVersion(String filePath) {
return
pom
.
parent
.
version
}
String
getPomVersion
(
String
pomFile
){
def
pom
=
readMavenPom
file:
pomFile
return
pom
.
version
}
String
generateImageTag
()
{
def
imageTag
=
"${env.BRANCH_NAME}-${getRootPomVersion()}"
...
...
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