From 744aeb91ce8649832b63bedec576061da3a9f1af Mon Sep 17 00:00:00 2001 From: patrycjalazna Date: Sun, 28 Mar 2021 16:06:45 +0200 Subject: [PATCH] cutoff parameter --- Jenkinsfile | 3 ++- avocado-preprocessing.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1143705..d5618d7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,7 @@ pipeline { trim: false ) string( - defaultValue: '5000', + defaultValue: '10000', description: 'Data cutoff', name: 'CUTOFF', trim: false @@ -29,6 +29,7 @@ pipeline { 'KAGGLE_KEY=$params.KAGGLE_KEY']) { sh 'chmod +x avocado-preprocessing.sh' sh 'chmod +x ./avocado-preprocessing.sh' + sh 'echo ${CUTOFF}' sh './avocado-preprocessing.sh ${CUTOFF}' } } diff --git a/avocado-preprocessing.sh b/avocado-preprocessing.sh index cd6b201..fb0a66c 100755 --- a/avocado-preprocessing.sh +++ b/avocado-preprocessing.sh @@ -4,6 +4,7 @@ kaggle datasets download -d timmate/avocado-prices-2020 unzip -o avocado-prices-2020.zip wc -l avocado-updated-2020.csv +echo '${CUTOFF} AAAAAAAAAAAAAAAAA' # przetwarzanie pliku grep -P "^$" -n avocado-updated-2020.csv