diff --git a/Dockerfile b/Dockerfile index ba69b8a..00db461 100755 --- a/Dockerfile +++ b/Dockerfile @@ -10,9 +10,10 @@ RUN pip3 install matplotlib RUN pip3 install sklearn RUN apt-get install unzip -ENV CUTOFF=1000 +ARG CUTOFF ARG KAGGLE_USERNAME ARG KAGGLE_KEY +ENV CUTOFF=${CUTOFF} ENV KAGGLE_USERNAME=${KAGGLE_USERNAME} ENV KAGGLE_KEY=${KAGGLE_KEY} diff --git a/Jenkinsfile_docker b/Jenkinsfile_docker index 450ad88..58f0b30 100644 --- a/Jenkinsfile_docker +++ b/Jenkinsfile_docker @@ -1,7 +1,7 @@ pipeline { agent { dockerfile { - additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY}" + additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF}" } } parameters { diff --git a/download.sh b/download.sh index 1a595f7..b965fa2 100755 --- a/download.sh +++ b/download.sh @@ -8,7 +8,7 @@ dataset_operation() { head -n $len2 all_games.csv.shuf > all_games.csv.test head -n $len3 all_games.csv.shuf | tail -n $len2 > all_games.csv.dev tail -n +$len4 all_games.csv.shuf > all_games.csv.train - cp all_games.csv /dane/all_games.csv + cp all_games.csv.shuf /dane/all_games.csv wc -l all_games.csv.* }