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