diff --git a/Jenkinsfile-dataset-stats b/Jenkinsfile-dataset-stats new file mode 100644 index 0000000..9a489a9 --- /dev/null +++ b/Jenkinsfile-dataset-stats @@ -0,0 +1,45 @@ +pipeline { + agent any + parameters{ + choice( + choices: ['lastSuccessful()', 'lastCompleted()', 'latestSavedBuild()'], + description: 'Which build to use for copying artifacts', + name: 'BUILD_SELECTOR' + )} + stages { + stage('clear_before') { + steps { + sh 'rm -rf *' + } + } + stage('clone_git') { + steps { + sh 'git clone https://git.wmi.amu.edu.pl/s434743/ium_z434743' + } + } + stage('copy_artifacts') { + steps { + copyArtifacts filter: 'X_test.csv,X_dev.csv,X_train.csv', fingerprintArtifacts: true, projectName: 'z-s434743-create-dataset', selector: workspace() + } + } + stage('Docker') { + agent { + docker { + image 'ezajash/ium:latest' + reuseNode true + } + } + steps { + sh 'python ./ium_z434743/dataset-stats.py' + archiveArtifacts 'X_test_stats.csv' + archiveArtifacts 'X_dev_stats.csv' + archiveArtifacts 'X_train_stats.csv' + } + } + stage('clear_after!') { + steps { + sh 'rm -rf *' + } + } + } +} \ No newline at end of file