node { def app stage('Clone repository') { cleanWs() checkout scm } stage('Build image') { app = docker.build("ium_docker", "./Docker/") } stage('Split set into dev/train/test') { app.inside { sh 'cd ..' sh 'ls -la' sh 'python3 ./Docker/script.py' } } }