Skip to content

Commit 2abd1e2

Browse files
author
Vítězslav Dvořák
committed
Removes imagePrefix and updates image naming convention
Eliminates the imagePrefix variable for a cleaner image naming structure. Utilizes the full distribution name for Docker image creation, ensuring consistency across different distributions. This change simplifies the image naming process and improves clarity in the Jenkins pipeline.
1 parent c8b7505 commit 2abd1e2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

debian/Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
String[] distributions = ['debian:bookworm', 'debian:trixie', 'debian:forky', 'ubuntu:jammy', 'ubuntu:noble']
66

77
String vendor = 'vitexsoftware'
8-
String imagePrefix = 'multiflexi-'
98
//String distroFamily = ''
109

1110
properties([
@@ -26,6 +25,7 @@ distributions.each { distro ->
2625
println "Dist:" + distroName
2726

2827
def dist = distroName.split(':')
28+
def distroFamily = dist[0]
2929
def distroCode = dist[1]
3030
def buildImage = ''
3131
def artifacts = []
@@ -35,7 +35,7 @@ distributions.each { distro ->
3535
ansiColor('xterm') {
3636
stage('Checkout ' + distroName) {
3737
checkout scm
38-
def imageName = vendor + '/' + imagePrefix + distroCode + ':latest'
38+
def imageName = vendor + '/' + distro
3939
buildImage = docker.image(imageName)
4040
sh 'git checkout debian/changelog'
4141
def version = sh (

0 commit comments

Comments
 (0)