From a5e93e213ce7cec3963883c14efceb34e53b4307 Mon Sep 17 00:00:00 2001 From: Yami An Date: Thu, 3 Aug 2023 02:19:28 +0700 Subject: [PATCH] update pipeline Co-authored-by: tiendat-NTD Co-authored-by: macmie2411999 --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9885894..bd0b7be 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,15 +8,15 @@ pipeline { } } - stage('Pushing') { + stage('Push') { steps { - withDockerRegistry(credentialsId: 'dockerhub', url: 'https://index.docker.io/v1/') { + withDockerRegistry(credentialsId: 'docker_hub', url: 'https://index.docker.io/v1/') { sh 'docker push yamiannephilim/ecommerce' } } } - stage('Cleaning') { + stage('Clean') { steps { script { def containerId = sh(returnStdout: true, script: 'docker ps -aqf "name=ecommerce"').trim()