From 3bd369c9e2954b01315031f9a34befde3a5a1881 Mon Sep 17 00:00:00 2001 From: Jared Date: Tue, 1 Jul 2025 08:13:51 +0200 Subject: [PATCH] added params --- Jenkinsfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0d479a4..6d88774 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,10 +12,10 @@ pipeline { // TOKEN = credentials('c661e484bb4f032f8a0a5b02cda6f3344ca584b5') // } - // parameters { - // string(name: 'REPO_NAME', defaultValue: '', description: 'Repo Name') - // string(name: 'GIT_REF', defaultValue: '', description: 'Git Ref') - // } + parameters { + string(name: 'REPO_NAME', defaultValue: '', description: 'Repo Name') + string(name: 'GIT_REF', defaultValue: '', description: 'Git Ref') + } options { buildDiscarder( @@ -44,8 +44,9 @@ pipeline { steps { echo 'Start Pushing' script { + def tag = "innohub/tatort:${env.BUILD_ID}-dev" docker.withRegistry('https://gitea.innovation-hub-niedersachsen.de', 'JenkinsGitea') { - docker.build("innohub/tatort:${env.BUILD_ID}", '-f Dockerfile.dev .').push('latest') + docker.build(tag, '-f Dockerfile.dev .').push() } } }