diff --git a/Jenkinsfile b/Jenkinsfile index 49c90d7..159c1b3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,32 +1,23 @@ node { stage('Installation') { - steps { echo "start Installation" echo "finish Installation" - } } stage('Build') { - steps { echo "Running ${env.BUILD_ID} on ${env.JENKINS_URL}" echo 'Building..' // sh 'docker build -t registry.proxyq.co/hellsos/website .' - } } stage('Test') { - steps { echo "start Testing" sh 'sleep 5' echo "finish Testing" - } } stage('Deploy') { - node { - checkout scm - docker.withRegistry("${env.ENV_REGISTRY_URL}", 'registry-credentials-id') { - def customImage = docker.build("${env.ENV_REGISTRY_URL}/jenkins/website:${env.BUILD_ID}") - customImage.push() - } + docker.withRegistry("${env.ENV_REGISTRY_URL}", 'registry-credentials-id') { + def customImage = docker.build("${env.ENV_REGISTRY_URL}/jenkins/website:${env.BUILD_ID}") + customImage.push() } } }