pipeline { agent { docker { image 'kubakonieczny/ium:v1.0' } } stages { stage('docker') { steps { sh ''' python3 python_script.py >> stats.txt ''' } } stage('archive artifacts') { steps { archiveArtifacts 'stats.txt' } } } }