From 1eacf95dc771ab46885aad61031564be3e407687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20=C5=81ukasiewicz?= Date: Fri, 12 May 2023 18:32:28 +0200 Subject: [PATCH] Zaktualizuj 'Multibranch-evaluation' --- Multibranch-evaluation | 55 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/Multibranch-evaluation b/Multibranch-evaluation index e69de29..7b124af 100644 --- a/Multibranch-evaluation +++ b/Multibranch-evaluation @@ -0,0 +1,55 @@ +pipeline { + agent any + parameters{ + gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH' + } + stages { + stage('clear') { + steps { + sh 'rm -rf *' + } + } + stage('Clone Git') { + steps { + sh 'git clone https://git.wmi.amu.edu.pl/s434743/ium_z434743' + } + } + stage('copy_artifacts') { + steps { + copyArtifacts(projectName: 'z-s434743-training/master', fingerprintArtifacts: true) + } + } + stage('copy_artifacts_from_inside') { + steps { + copyArtifacts(projectName: 'z-s434743-evaluation/master', fingerprintArtifacts: true, optional: true) + } + } + stage('copy_artifacts_test_data') { + steps { + copyArtifacts(projectName: 'z-s434743-create-dataset', filter: 'X_test.csv,Y_test.csv', fingerprintArtifacts: true) + } + } + stage('Docker') { + agent { + dockerfile { + filename 'Dockerfile' + dir 'ium_z434743' + reuseNode true + } + } + steps { + sh 'ls -a' + sh 'python ./ium_z434743/prediction.py' + sh 'python ./ium_z434743/plot.py' + archiveArtifacts 'prediction.csv' + archiveArtifacts 'metrics.csv' + archiveArtifacts 'metrics.png' + } + } + stage('clear2') { + steps { + sh 'rm -rf *' + } + } + } +}