pipeline {
    agent {
    	dockerfile true
    }
    stages {
		stage('Check out from version control') {
			steps {
				checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444421', url: 'https://git.wmi.amu.edu.pl/s444421/ium_444421.git']]])
			}
		}
        stage('Shell Script') {
            steps {
				sh 'ipython ./prepare_datasets.py'
				archiveArtifacts artifacts: 'X_train.csv, X_test.csv, y_train.csv, y_test.csv '
            }
        }
    }
}