From e0157e87fc87a432e6317f95173e6a4eeeb2ca65 Mon Sep 17 00:00:00 2001 From: jakubknczny Date: Sun, 28 Mar 2021 14:06:52 +0200 Subject: [PATCH] add zadanie7 --- Jenkinsfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 76f5536..65d565a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,11 @@ pipeline { agent any + parameters([ + string( defaultValue: '2000', + description: '', + name: 'CUTOFF', + trim: false) + ]) stages { stage('sh: Shell Script') { steps { @@ -7,6 +13,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' } archiveArtifacts 'train.csv' archiveArtifacts 'test.csv'