zadanie 8
This commit is contained in:
parent
f0227cc53d
commit
495eed614f
27
dataset_stats/Jenkinsfile
vendored
Normal file
27
dataset_stats/Jenkinsfile
vendored
Normal 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
5
dataset_stats/stats.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user