pipeline { agent { docker { image kubakonieczny/ium } } stages { stage('docker') { steps { sh ''' ./script.sh >> stats.txt ''' } } stage('archive artifacts') { steps { archiveArtifacts 'stats.txt' } } } }