From 20265af004807d49d72a2d6b48bbaebe789632b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20Parafin=CC=81ski?= Date: Sun, 3 Apr 2022 23:13:45 +0200 Subject: [PATCH] update Jenkinsfile2 --- Jenkinsfile_stats | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Jenkinsfile_stats 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