From c532927103b2c67e34d8e09d74cb6eed4ba43f2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20=C5=81ukasiewicz?= Date: Thu, 20 Apr 2023 15:01:01 +0200 Subject: [PATCH] Dodanie 'Jenkinsfile-dataset-stats' --- Jenkinsfile-dataset-stats | 45 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Jenkinsfile-dataset-stats 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