Update Jenkinsfile
All checks were successful
InnoHub Processor/tatort/pipeline/head This commit was not built
All checks were successful
InnoHub Processor/tatort/pipeline/head This commit was not built
This commit is contained in:
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user