diff --git a/Jenkinsfile_stats b/Jenkinsfile_stats new file mode 100644 index 0000000..d2f50bc --- /dev/null +++ b/Jenkinsfile_stats @@ -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" + } + } + } +} \ No newline at end of file