diff --git a/Jenkinsfile b/Jenkinsfile index 40da509..ea37cb6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,8 +4,10 @@ pipeline { stages { stage('Build') { steps { - sh 'echo building...' - sh 'docker run -p 5000:5000 microblog:latest' + node { + checkout scm + def customImage = docker.build("microblog:latest") + } } }