Update Jenkinsfile

This commit is contained in:
2025-01-25 18:22:29 +02:00
parent c69e1e7a29
commit bde4926c5f

12
Jenkinsfile vendored
View File

@@ -73,11 +73,21 @@ pipeline {
// Login to registry
docker.withRegistry('https://git.ruff.co.il', registryCredentialsId) {
// Run container on build
// Run container
docker.image(imageName).run('-p 10002:80 --name otomai')
}
}
}
}
}
post {
success {
// Trigger the deploy-prod-job on success of the build
build job: 'deploy-prod-job', wait: false
}
failure {
// Optionally, you can handle failure scenarios (e.g., notify team, etc.)
echo "Build failed, deployment not triggered."
}
}
}