From cba8461a38d62f82a9b4dc5184a2c22c909385ed Mon Sep 17 00:00:00 2001 From: Anna Nowak Date: Sun, 28 Mar 2021 23:17:05 +0200 Subject: [PATCH] debug push --- Jenkinsfile | 5 +++-- script.sh | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6f77af6..3d2df24 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,10 +28,11 @@ pipeline { { steps { withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", - "KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}" ]) { + "KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}"]) { sh "chmod 777 ./script.sh" sh './script.sh' - } + + } } } stage('archive artifacts') { diff --git a/script.sh b/script.sh index 7647db6..53469d0 100644 --- a/script.sh +++ b/script.sh @@ -2,7 +2,8 @@ kaggle datasets download -d karangadiya/fifa19 unzip -o fifa19.zip x=$(($CUTOFF/10)) - +echo $KAGGLE_USERNAME +echo $KAGGLE_KEY head -n 1 data.csv > header.csv tail -n +2 data.csv| tail -n $CUTOFF | shuf > data_shuf.csv head -n $(($x*2)) data_shuf.csv > test.csv