Updated jenkins build file

This commit is contained in:
P-A
2026-04-04 15:19:15 +02:00
parent 7e1e44a4dc
commit ed3a8bb54c

5
Jenkinsfile vendored
View File

@@ -3,8 +3,9 @@ pipeline {
environment { environment {
DOCKER_IMAGE = 'homework-backend' DOCKER_IMAGE = 'homework-backend'
DOCKER_TAG = "${env.BUILD_NUMBER}" IMAGE_TAG = "${env.BUILD_NUMBER ?: 'latest'}"
DOCKER_REGISTRY = '192.168.50.221:45000' // Replace with your Docker registry DOCKER_REGISTRY = "192.168.50.221:45000" // replace with your registry e.g. docker.io/yourorg
DOCKER_CREDENTIALS_ID = "dockerhub-credentials" // set this credential in Jenkins
} }
stages { stages {