diff --git a/Jenkinsfile_create_dataset b/Jenkinsfile_create_dataset index 4836aef..6cf5099 100644 --- a/Jenkinsfile_create_dataset +++ b/Jenkinsfile_create_dataset @@ -13,7 +13,8 @@ pipeline { "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { sh 'chmod +x script-zadanie-2-4.sh' sh './script-zadanie-2-4.sh' - sh "head -n ${params.CUTOFF} train.csv > train.csv" + sh 'chmod +x script-zadanie-2-4-cutoff.sh' + sh "./script-zadanie-2-4-cutoff.sh ${params.CUTOFF}" } } } diff --git a/script-zadanie-2-4-cutoff.sh b/script-zadanie-2-4-cutoff.sh new file mode 100644 index 0000000..317036a --- /dev/null +++ b/script-zadanie-2-4-cutoff.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +mv train.csv temp.csv +head -n $1 temp.csv > train.csv