diff --git a/Jenkinsfile_stats b/Jenkinsfile_stats new file mode 100644 index 0000000..5333e8b --- /dev/null +++ b/Jenkinsfile_stats @@ -0,0 +1,22 @@ +pipeline { + agent { + docker { + image 'docker_image' + } + } + parameters{ + buildSelector( + defaultSelector: lastSuccessful(), + name: 'BUILD_SELECTOR', + description: 'Which build to use for copying artifacts' + ) + } + stages { + stage("Script") { + steps { + sh "./lab2/stats.sh" + archiveArtifacts 'stats.txt' + } + } + } +} \ No newline at end of file