ium_z434686/Multibranch-Training

47 lines
1.0 KiB
Plaintext
Raw Normal View History

2023-05-10 21:15:58 +02:00
pipeline {
agent any
2023-05-10 21:16:43 +02:00
parameters{
string(
2023-05-10 22:38:14 +02:00
defaultValue: '500',
description: 'EPOCHS',
name: 'EPOCHS',
2023-05-10 21:16:43 +02:00
trim: false
)
}
2023-05-10 21:15:58 +02:00
stages {
stage('clear_before') {
steps {
sh 'rm -rf *'
}
}
2023-05-10 22:32:39 +02:00
stage('Clone Git') {
steps {
sh 'git clone https://git.wmi.amu.edu.pl/s434686/ium_z434686'
}
}
2023-05-10 21:15:58 +02:00
stage('copy_artifacts') {
steps {
2023-05-10 22:30:13 +02:00
copyArtifacts(projectName: 'z-s434686-create-dataset', fingerprintArtifacts: true)
2023-05-10 21:15:58 +02:00
}
}
stage('Docker') {
agent {
dockerfile {
filename 'Dockerfile'
dir 'ium_z434686'
reuseNode true
}
}
steps {
2023-05-10 22:33:47 +02:00
sh 'python ./ium_z434686/train.py'
archiveArtifacts 'test/'
2023-05-10 21:15:58 +02:00
}
}
stage('clear_after') {
steps {
sh 'rm -rf *'
}
}
}
}