From 3328779514daf3904cc7843cd400a80182f71ed7 Mon Sep 17 00:00:00 2001 From: Wojciech Jarmosz Date: Sun, 28 Mar 2021 18:50:18 +0200 Subject: [PATCH] Add Jenkins file for stats --- Jenkinsfile_stats | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Jenkinsfile_stats 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