From f1b09f1cd7eb896335c4414213a8b8467ead4d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Furmann?= Date: Fri, 3 Apr 2020 15:13:17 +0000 Subject: [PATCH] Dodaj 'Jenkinsfile' --- Jenkinsfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..a055678 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,23 @@ +pipeline { + agent {dockerfile true} + stages { + + stage('Copy artifacts'){ + steps { + copyArtifacts filter: filter: 'wer.txt, srr.txt', fingerprintArtifacts: true, projectName: 's416226-metrics', selector: lastSuccessful() + } + } + stage('Plot'){ + steps { + sh('chmod +x ./plot.sh') + sh('./plot.sh') + } + } + stage('Save results'){ + steps { + archiveArtifacts 'srr.png' + archiveArtifacts 'wer.png' + } + } + } +} \ No newline at end of file