From c49058c82600ad1709712e203a5fdd1d02e25c72 Mon Sep 17 00:00:00 2001 From: jakubknczny Date: Sun, 28 Mar 2021 17:53:20 +0200 Subject: [PATCH] rename Jenkinsfile, zadanie6 --- Jenkinsfile => Jenkinsfile_create_dataset | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename Jenkinsfile => Jenkinsfile_create_dataset (73%) 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' } } }