pipeline { agent none stages { stage('copy files') { agent any steps { sh ''' cp ./lab5/create/script.sh . cp ./lab5/create/create_dataset.py . cp ./lab5/create/Dockerfile . cp ./lab5/create/requirements.txt . ''' } } stage('docker') { agent { dockerfile { filename 'Dockerfile' args '-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}' } } stages { stage('script') { steps { sh ''' chmod +x script.sh ./script.sh''' } } stage('archive artifact') { steps { archiveArtifacts 'train.csv' archiveArtifacts 'test.csv' archiveArtifacts 'valid.csv' } } } } } }