add Jenkinsfile for dataset-stats
This commit is contained in:
parent
1d12550fea
commit
46b56b023f
23
Jenkinsfile_dataset_stats
Normal file
23
Jenkinsfile_dataset_stats
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('copy artifacts') {
|
||||||
|
steps {
|
||||||
|
copyArtifacts fingerprintArtifacts: true, projectName: 's470607-create-dataset', selector: lastSuccessful()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('stats') {
|
||||||
|
steps {
|
||||||
|
sh 'wc -l train.csv > stats.txt'
|
||||||
|
sh 'wc -l test.csv >> stats.txt'
|
||||||
|
sh 'wc -l valid.csv >> stats.txt'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('archive artifacts') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts 'stats.txt'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user