zadanie 8

This commit is contained in:
s434695 2021-03-28 22:32:17 +02:00
parent f0227cc53d
commit 495eed614f
3 changed files with 46 additions and 14 deletions

27
dataset_stats/Jenkinsfile vendored Normal file
View File

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

5
dataset_stats/stats.sh Normal file
View File

@ -0,0 +1,5 @@
wc -l healthcare-dataset-stroke-data.csv >> stats.txt
wc -l test.csv >> stats.txt
wc -l dev.csv >> stats.txt
wc -l train.csv >> stats.txt
wc -l obcietedane.csv >> stats.txt