diff --git a/Jenkinsfile b/Jenkinsfile index 95939e9..b362cd7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,10 +1,17 @@ -pipeline { - agent { docker { image 'python:3.5.1' } } - stages { - stage('build') { - steps { - sh 'python --version' - } +node { + def app + + stage('Clone repository') { + checkout scm + } + + stage('Build image') { + app = docker.build("hellonode") + } + + stage('Test image') { + app.inside { + sh 'echo "Tests passed"' } } } \ No newline at end of file