Add Jenkins file for stats
This commit is contained in:
parent
2fcec72298
commit
3328779514
16
Jenkinsfile_stats
Normal file
16
Jenkinsfile_stats
Normal file
@ -0,0 +1,16 @@
|
||||
pipeline {
|
||||
agent any
|
||||
parameters {
|
||||
buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts', name: 'BUILD_SELECTOR')
|
||||
}
|
||||
stages {
|
||||
stage("Clone repo & print stats"){
|
||||
steps {
|
||||
copyArtifacts fingerprintArtifacts: true, projectName: 's434704-create-dataset', selector: buildParameter('BUILD_SELECTOR')
|
||||
sh "chmod 777 ./count_files_lines.sh"
|
||||
sh "./count_files_lines.sh"
|
||||
archiveArtifacts "stats.txt"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user