Fixing some issues with naming

develop-jenkins
Nicolas Arenas 2024-10-22 20:53:21 +02:00
parent 57e5e57059
commit d6231dbe0f
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
pipeline {
agent { label 'jenkins-slave' }
environment {
DOCKER_REGISTRY = "opengnsys"
DOCKER_REPO = "opengnsys"
DOCKER_CREDENTIALS = credentials('DOCKER_HUB_TOKEN')
DOCKER_TAG = "${env.BUILD_NUMBER}"
DOCKER_IMAGE_NAME = "oggui"
@ -18,7 +18,7 @@ pipeline {
echo 'Building....'
script {
dir('ogWebconsole') {
docker.build("${DOCKER_IMAGE_NAME}:${BRANCH_NAME}-${DOCKER_TAG}", "-f Dockerfile .")
docker.build("${DOCKER_REPO}/${DOCKER_IMAGE_NAME}:${BRANCH_NAME}-${DOCKER_TAG}", "-f Dockerfile .")
}
}
}