From 0036eeda7e568cb757f6ac7444827bb9d9fa32d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Zar=C4=99ba?= Date: Mon, 27 Mar 2023 21:46:12 +0200 Subject: [PATCH] t --- Jenkinsfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 3d1ee47..c6ae97f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,14 @@ pipeline { agent any + parameters { + string( + defaultValue: '100', + description: 'The number of examples to keep in the dataset', + name: 'CUTOFF' + ) + } + stages { stage('Preparation') { when { expression { true } } @@ -45,6 +53,10 @@ pipeline { unzip -o olympics-124-years-datasettill-2020.zip echo "Processed Data" > output.txt + + head -n ${params.CUTOFF} athlete_events.csv > athlete_events_cutoff.csv + + mv athlete_events_cutoff.csv athlete_events.csv ''' } } catch (err) {