add zadanie6

This commit is contained in:
jakubknczny 2021-03-28 18:40:49 +02:00
parent 15a8003b3e
commit f99f48cb83

View File

@ -1,6 +1,11 @@
pipeline {
agent any
// properties([parameters([string(defaultValue: '20000', description: 'numbers of data entries to keep in train.csv', name: 'CUTOFF', trim: true)])])
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 +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'
sh 'head -n ${params.CUTOFF} train.csv > train.csv'
}
}
}