From 5e48e22da43b508dea8973c137a4f649fff476e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Dudziak?= Date: Sat, 25 Mar 2023 12:59:27 +0100 Subject: [PATCH] add Jenkinsfile for stats --- Jenkinsfile_stats | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Jenkinsfile_stats diff --git a/Jenkinsfile_stats b/Jenkinsfile_stats new file mode 100644 index 0000000..de703f9 --- /dev/null +++ b/Jenkinsfile_stats @@ -0,0 +1,23 @@ +node { + stage('Preparation') { + properties([ + parameters([ + buildSelector( + defaultSelector: lastSuccessful(), + description: 'Which build to use for copying artifacts', + name: 'BUILD_SELECTOR') + + ]) + ]) + } + stage('Copy artifacts') { + copyArtifacts fingerprintArtifacts: true, projectName: 's452662-create-dataset', selector: buildParameter('BUILD_SELECTOR') + } + stage('Script') { + sh '''wc -l Car_Prices_Poland_Kaggle.csv > cars_stats.txt + ''' + } + stage('Archive artifacts') { + archiveArtifacts artifacts: '*.txt', followSymlinks: false + } +} \ No newline at end of file