pipeline { agent { dockerfile {image 'ksero/ium:pytorch'} } /* parameters{ buildSelector( defaultSelector: lastSuccessful(), name: 's444354-create-dataset', description: 'Which build to use for copying artifacts' ) }*/ stages { stage("Check out from version control") { steps { checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444354', url: 'https://git.wmi.amu.edu.pl/s444354/ium_444354.git']]]) } } stage("Shell Script") { steps { sh "chmod u+x ./script2.sh" sh " ./script2.sh" archiveArtifacts 'num_of_lines.txt' } } } }