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 { pipeline {
agent any agent any
parameters {
string (
defaultValue: '100',
description: 'Wielkość odcięcia zbioru danych',
name: 'CUTOFF',
trim: false
)
}
stages { stages {
stage('Checkout') { stage('Checkout') {
steps { steps {
@ -11,7 +21,7 @@ pipeline {
} }
stage('Download') { stage('Download') {
steps { steps {
sh './create-dataset.sh' sh "CUTOFF=${CUTOFF} ./create-dataset.sh"
} }
} }
stage('Archive') { stage('Archive') {

View File

@ -1,3 +1,5 @@
#! /bin/bash #! /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