diff --git a/Jenkinsfile b/Jenkinsfile index a0c0960..9cd2abb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,10 +3,9 @@ pipeline { parameters{ string( - defaultValue: 'maciejsobkowiak', - description: 'Kaggle username', - name: 'username', - trim: false + defaultValue: '1000', + description: 'cutoff', + name: 'CUTOFF' ) } @@ -19,7 +18,7 @@ pipeline { stage('sh: Shell Script') { steps { sh 'chmod +x preparations.sh' - sh './preparations.sh' + sh './preparations.sh $(CUTOFF)' } } stage('archiveArtifacts'){ diff --git a/preparations.sh b/preparations.sh index 97a8ed8..1ead4f1 100755 --- a/preparations.sh +++ b/preparations.sh @@ -4,7 +4,7 @@ curl -OL https://git.wmi.amu.edu.pl/s434784/ium_434784/raw/branch/master/who_sui head -n 1 who_suicide_statistics.csv > names.csv # Randomizacja zbioru. -shuf who_suicide_statistics.csv > data.shuf +sed 1d who_suicide_statistics.csv | shuf > data.shuf #cp who_suicide_statistics.csv data.shuf # Podzial na 3 pozbiory @@ -20,6 +20,7 @@ head -n $DEV data.shuf | tail -n $TEST > data.dev head -n $NUMROWS data.shuf | tail -n $TRAIN > data.train echo "Test rows ${TEST}" -echo "Dev rows ${TEST}" +echo "Dev rows ${DEV}" echo "Train rows ${TRAIN}" -echo "All number of rows ${NUMROWS}" \ No newline at end of file +echo "All number of rows ${NUMROWS}" +echo "$1" \ No newline at end of file