added files for dataset-stats
This commit is contained in:
parent
9a804e16f1
commit
3f38d6f2bb
23
Jenkinsfile_stats
Normal file
23
Jenkinsfile_stats
Normal file
@ -0,0 +1,23 @@
|
||||
node {
|
||||
stage('Preparation') {
|
||||
properties([
|
||||
parameters([
|
||||
buildSelector(
|
||||
defaultSelector: lastSuccessful(),
|
||||
description: 'Which build to use for copying artifacts',
|
||||
name: 'BUILD_SELECTOR')
|
||||
|
||||
])
|
||||
])
|
||||
}
|
||||
stage('Copy artifacts') {
|
||||
copyArtifacts fingerprintArtifacts: true, projectName: 's425850-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||||
}
|
||||
stage('Script') {
|
||||
sh 'chmod u+x ./get_stats.sh'
|
||||
sh './get_stats.sh'
|
||||
}
|
||||
stage('Archive artifacts') {
|
||||
archiveArtifacts artifacts: 'stats.txt', followSymlinks: false
|
||||
}
|
||||
}
|
1
get_stats.sh
Normal file
1
get_stats.sh
Normal file
@ -0,0 +1 @@
|
||||
wc -l books_edited.csv > stats.txt
|
Loading…
Reference in New Issue
Block a user