diff --git a/Jenkinsfile b/Jenkinsfile index e7ac207..028be60 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,15 +1,13 @@ pipeline { - agent { label 'linux' } - options { - buildDiscarder(logRotator(numToKeepStr: '5')) - } + agent any + environment { - DOCKERHUB_CREDENTIALS = credentials('darinpope-dockerhub') + DOCKERHUB_CREDENTIALS = credentials('dockerhub') } stages { stage('Build') { steps { - sh 'docker build -t darinpope/dp-alpine:latest .' + sh 'docker build -t 123456ceh/dp-alpine:latest .' } } stage('Login') { @@ -19,7 +17,7 @@ pipeline { } stage('Push') { steps { - sh 'docker push darinpope/dp-alpine:latest' + sh 'docker push 123456ceh/dp-alpine:latest' } } } @@ -28,4 +26,4 @@ pipeline { sh 'docker logout' } } -} \ No newline at end of file +}