Added stats

This commit is contained in:
Adam Wojdyla 2022-03-27 14:34:07 +02:00
parent 92c9e53b43
commit 887c472c4a
2 changed files with 23 additions and 0 deletions

20
Jenkinsfile2 Normal file
View File

@ -0,0 +1,20 @@
pipeline {
agent any
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
name: 'BUILD_SELECTOR',
description: 'Which build to use for copying artifacts'
)
}
stages {
stage("Script") {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's444507-create-dataset', selector: lastSuccessful() sh " ./stats.sh"
archiveArtifacts 'lines.txt'
sh './stats.sh'
archiveArtifacts artifacts: 'stats.txt'
}
}
}
}

3
stats.sh Executable file
View File

@ -0,0 +1,3 @@
wc -l car_prices.csv.dev > stats.txt
wc -l car_prices.csv.test >> stats.txt
wc -l car_prices.csv.train >> stats.txt