pipeline { agent any; stages{ stage('docker-training') { steps { script { def image = docker.build('dock') image.inside{ sh 'chmod +x training.py' sh 'python3 training.py' } } } } } }