From 69a6b71ba4dd4dd17e9330fc3626ecaf35521229 Mon Sep 17 00:00:00 2001 From: Selmouni Abdelilah Date: Fri, 23 Feb 2024 11:20:48 +0100 Subject: [PATCH] push to Docker from Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 73da8e8..42160fd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -61,7 +61,7 @@ pipeline{ } stage('Build Docker Image') { steps{ - sh 'docker build -t jenkinsci:$BUILD_NUMBER .' + sh 'docker build -t abdelilahone/jenkinsci:$BUILD_NUMBER .' } } stage('Login to Docker Hub') { @@ -71,7 +71,7 @@ pipeline{ } stage('Push Image to Docker Hub') { steps{ - sh 'docker push jenkinsci:$BUILD_NUMBER' + sh 'docker push abdelilahone/jenkinsci:$BUILD_NUMBER' } }