diff --git a/Jenkinsfile b/Jenkinsfile index ad531e2..28cb0b9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,15 @@ pipeline { agent any + + parameters { + string ( + defaultValue: '100', + description: 'Wielkość odcięcia zbioru danych', + name: 'CUTOFF', + trim: false + ) + } + stages { stage('Checkout') { steps { @@ -11,7 +21,7 @@ pipeline { } stage('Download') { steps { - sh './create-dataset.sh' + sh "CUTOFF=${CUTOFF} ./create-dataset.sh" } } stage('Archive') { diff --git a/create-dataset.sh b/create-dataset.sh index 54fc2b3..9fca488 100755 --- a/create-dataset.sh +++ b/create-dataset.sh @@ -1,3 +1,5 @@ #! /bin/bash -wget https://git.wmi.amu.edu.pl/pms/uczenie-maszynowe/src/branch/main/wyk/iris.csv \ No newline at end of file +rm -f iris.csv && wget https://git.wmi.amu.edu.pl/pms/uczenie-maszynowe/src/branch/main/wyk/iris.csv +head -n ${CUTOFF} iris.csv >data.csv +wc -l *.csv \ No newline at end of file