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