diff --git a/Docker/Jenkinsfile b/Docker/Jenkinsfile index 3bb7229..3a017da 100644 --- a/Docker/Jenkinsfile +++ b/Docker/Jenkinsfile @@ -1,10 +1,19 @@ -pipeline { - agent { dockerfile true } - stages { - stage('Launch Docker') { - steps { - sh 'ls -la' - } - } - } +node { + def app + stage('Clone repository') { + + checkout scm + } + + stage('Build image') { + + app = docker.build("sparafinski/ium") + } + + stage('Test image') { + app.inside { + + sh 'echo "Tests passed"' + } + } } \ No newline at end of file