Skip to content

Commit

Permalink
Merge pull request #140 from Nohit-Java17/develop
Browse files Browse the repository at this point in the history
update pipeline
  • Loading branch information
Tynab authored Aug 2, 2023
2 parents 9e48a00 + a5e93e2 commit 871f4fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 871f4fe

Please sign in to comment.