pipeline{ agent any //properties([parameters([text(defaultValue: '1000', description: 'Number of lines', name: 'CUTOFF')])]) stages { stage('checkout: Check out from version control'){ steps{ checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '321737ab-1c4d-475f-9667-513cf19ba596', url: 'https://git.wmi.amu.edu.pl/s434780/ium_434780.git']]]) } } stage('docker') { steps{ script{ def img = docker.build('s434780/ium:1.0') img.inside{ sh './script.sh' } } } } stage('sh: Shell Script'){ steps{ sh ''' chmod +x script.sh ./script.sh''' } } stage('Archive artifacts'){ steps{ archiveArtifacts 'test.csv' archiveArtifacts 'dev.csv' archiveArtifacts 'train.csv' } } } }