diff --git a/Jenkinsfile b/Jenkinsfile index 9fbd116..9418468 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,24 +1,20 @@ -node { - def app +pipeline { + agent any - stage('Clone repository') { - checkout scm - } - - stage('Build image') { - app = docker.build("brandonjones085/test") - } - - stage('Test image') { - app.inside { - sh 'echo "Tests passed"' + stages { + stage('Clone repository') { + checkout scm } - } - stage('Push image') { - docker.withRegistry('https://registry.hub.docker.com', 'git') { - app.push("${env.BUILD_NUMBER}") - app.push("latest") + stage('Build image') { + app = docker.build("efstajas/homepage") + } + + stage('Push image') { + docker.withRegistry('https://registry.hub.docker.com', 'git') { + app.push("${env.BUILD_NUMBER}") + app.push("latest") + } } } }