ium_z486867/Jenkinsfile_train
mikaleta-mbm 42ebc25f24 jenkins 2
2023-09-30 00:10:57 +02:00

47 lines
1.0 KiB
Plaintext

pipeline {
agent any
parameters{
string(
defaultValue: '1000',
description: 'EPOCHS',
name: 'EPOCHS',
trim: false
)
}
stages {
stage('Clear_Before') {
steps {
sh 'rm -rf *'
}
}
stage('Clone') {
steps {
sh 'git clone https://git.wmi.amu.edu.pl/s486867/ium_z486867.git'
}
}
stage('copy_artifacts') {
steps {
copyArtifacts(projectName: 'z-s486867-create-dataset', fingerprintArtifacts: true)
}
}
stage('Docker') {
agent {
dockerfile {
filename 'Dockerfile'
dir 'ium_z486867'
reuseNode true
}
}
steps {
sh 'python ./ium_z486867/train.py'
archiveArtifacts 'model/'
}
}
stage('Clear_After') {
steps {
sh 'rm -rf *'
}
}
}
}