ium_z487173/Jenkinsfile_train

47 lines
1.0 KiB
Plaintext
Raw Permalink Normal View History

2023-05-22 21:15:46 +02:00
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/s487173/ium_z487173.git'
}
}
stage('copy_artifacts') {
steps {
copyArtifacts(projectName: 'z-s487173-create-dataset', fingerprintArtifacts: true)
}
}
stage('Docker') {
agent {
dockerfile {
filename 'Dockerfile'
dir 'ium_z487173'
reuseNode true
}
}
steps {
sh 'python ./ium_z487173/train.py'
archiveArtifacts 'model/'
}
}
stage('Clear_After') {
steps {
sh 'rm -rf *'
}
}
}
}