diff --git a/Jenkinsfile b/Jenkinsfile_create_dataset similarity index 73% rename from Jenkinsfile rename to Jenkinsfile_create_dataset index 022eb83..9e4ac73 100644 --- a/Jenkinsfile +++ b/Jenkinsfile_create_dataset @@ -1,6 +1,6 @@ pipeline { agent any - // options([parameters([string(defaultValue: '20000', description: '', name: 'CUTOFF', trim: false)])]) + properties([parameters([string(defaultValue: '20000', description: 'numbers of data entries to keep in train.csv', name: 'CUTOFF', trim: true)])]) stages { stage('sh: Shell Script') { steps { @@ -8,7 +8,7 @@ pipeline { "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { sh 'chmod +x script-zadanie-2-4.sh' sh './script-zadanie-2-4.sh' - // sh 'head -n ${CUTOFF} train.csv >> train.csv' + sh 'head -n ${CUTOFF} train.csv > train.csv' } } }