diff --git a/stats/Jenkinsfile b/stats/Jenkinsfile new file mode 100644 index 0000000..62d6036 --- /dev/null +++ b/stats/Jenkinsfile @@ -0,0 +1,27 @@ +pipeline { + agent any + parameters { + buildSelector ( + defaultSelector: lastSuccessful(), + description: 'Which build to use for copying artifacts', + name: 'BUILD_SELECTOR' + ) + } + stages { + stage('Checkout repository') { + steps { + checkout scm + } + stage('Copy artifacts') { + steps { + copyArtifacts fingerprintArtifacts: true, projectName: 'z-s464980-create-dataset', selector: buildParameter('BUILD_SELECTOR') + } + } + stage('Get stats') { + steps { + sh "./get_stats.sh" + archiveArtifacts artifacts: 'stats.txt', onlyIfSuccessful: true + } + } + } +} \ No newline at end of file diff --git a/get_stats.sh b/stats/get_stats.sh similarity index 100% rename from get_stats.sh rename to stats/get_stats.sh