Update 'Multibranch-Evaluation'

This commit is contained in:
Patryk Gałka 2023-05-10 22:53:25 +02:00
parent eb8170b7df
commit 20f83a645e

View File

@ -0,0 +1,47 @@
pipeline {
agent any
parameters{
string(
defaultValue: '500',
description: 'EPOCHS',
name: 'EPOCHS',
trim: false
)
}
stages {
stage('clear_before') {
steps {
sh 'rm -rf *'
}
}
stage('Clone Git') {
steps {
sh 'git clone https://git.wmi.amu.edu.pl/s434686/ium_z434686'
}
}
stage('copy_artifacts') {
steps {
copyArtifacts(projectName: 'z-s434686-training', fingerprintArtifacts: true)
}
}
stage('Docker') {
agent {
dockerfile {
filename 'Dockerfile'
dir 'ium_z434686'
reuseNode true
}
}
steps {
sh 'python ./ium_z434686/predict.py'
archiveArtifacts 'prediction.csv'
}
}
stage('clear_after') {
steps {
sh 'rm -rf *'
}
}
}
}