Add cutoff parameter

This commit is contained in:
Paweł Skórzewski 2024-03-20 14:52:24 +01:00
parent b401f4ae63
commit 89798a1db0
2 changed files with 14 additions and 2 deletions

12
Jenkinsfile vendored
View File

@ -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') {

View File

@ -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