Update Jenkinsfile
All checks were successful
InnoHub Processor/tatort/pipeline/head This commit was not built

This commit is contained in:
2025-07-16 09:54:56 +02:00
parent a7527ccf22
commit b2f624a7d1

12
Jenkinsfile vendored
View File

@@ -1,7 +1,8 @@
/* groovylint-disable-next-line UnusedVariable */ /* groovylint-disable-next-line UnusedVariable */
@Library('InnoHub-Library') _ @Library('InnoHub-Library') _
Boolean didRun = false def didRun = false
def versionTag = 'null'
pipeline { pipeline {
agent any agent any
@@ -11,7 +12,6 @@ pipeline {
} }
environment { environment {
VERSION_TAG = 'null'
REGISTRY = 'https://gitea.innovation-hub-niedersachsen.de/' REGISTRY = 'https://gitea.innovation-hub-niedersachsen.de/'
USER = 'jenkins' USER = 'jenkins'
TOKEN = credentials('JenkinsGitea') TOKEN = credentials('JenkinsGitea')
@@ -35,8 +35,8 @@ pipeline {
stage('Set Version Tag') { stage('Set Version Tag') {
steps { steps {
script { script {
env.VERSION_TAG = generateVersionTag(params.GIT_REF) versionTag = generateVersionTag(params.GIT_REF)
echo "[INFO] Using VERSION_TAG: ${env.VERSION_TAG}" echo "[INFO] Using VERSION_TAG: ${versionTag}"
} }
} }
} }
@@ -84,7 +84,7 @@ pipeline {
def imageName = "gitea.innovation-hub-niedersachsen.de/innohub/tatort-dev" def imageName = "gitea.innovation-hub-niedersachsen.de/innohub/tatort-dev"
docker.withRegistry(REGISTRY, 'JenkinsGitea') { docker.withRegistry(REGISTRY, 'JenkinsGitea') {
def img = docker.build("${imageName}:${env.VERSION_TAG}", '-f Dockerfile.dev .') def img = docker.build("${imageName}:${versionTag}", '-f Dockerfile.dev .')
img.push() img.push()
img.push('latest') img.push('latest')
} }
@@ -101,7 +101,7 @@ pipeline {
steps { steps {
script { script {
updateHelmChart([ updateHelmChart([
tag: env.VERSION_TAG, tag: versionTag,
repoUrl: 'gitea.innovation-hub-niedersachsen.de/innohub/charts.git', repoUrl: 'gitea.innovation-hub-niedersachsen.de/innohub/charts.git',
chartPath: 'tatort-dev/tatort', chartPath: 'tatort-dev/tatort',
chartName: 'tatort', chartName: 'tatort',