Add cutoff parameter
This commit is contained in:
parent
b401f4ae63
commit
89798a1db0
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -1,5 +1,15 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
parameters {
|
||||
string (
|
||||
defaultValue: '100',
|
||||
description: 'Wielkość odcięcia zbioru danych',
|
||||
name: 'CUTOFF',
|
||||
trim: false
|
||||
)
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
@ -11,7 +21,7 @@ pipeline {
|
||||
}
|
||||
stage('Download') {
|
||||
steps {
|
||||
sh './create-dataset.sh'
|
||||
sh "CUTOFF=${CUTOFF} ./create-dataset.sh"
|
||||
}
|
||||
}
|
||||
stage('Archive') {
|
||||
|
@ -1,3 +1,5 @@
|
||||
#! /bin/bash
|
||||
|
||||
wget https://git.wmi.amu.edu.pl/pms/uczenie-maszynowe/src/branch/main/wyk/iris.csv
|
||||
rm -f iris.csv && wget https://git.wmi.amu.edu.pl/pms/uczenie-maszynowe/src/branch/main/wyk/iris.csv
|
||||
head -n ${CUTOFF} iris.csv >data.csv
|
||||
wc -l *.csv
|
Loading…
Reference in New Issue
Block a user