47 lines
1.0 KiB
Plaintext
47 lines
1.0 KiB
Plaintext
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-create-dataset', fingerprintArtifacts: true)
|
|
}
|
|
}
|
|
stage('Docker') {
|
|
agent {
|
|
dockerfile {
|
|
filename 'Dockerfile'
|
|
dir 'ium_z434686'
|
|
reuseNode true
|
|
}
|
|
}
|
|
steps {
|
|
sh 'python ./ium_z434686/train.py'
|
|
archiveArtifacts 'test/'
|
|
}
|
|
}
|
|
stage('clear_after') {
|
|
steps {
|
|
sh 'rm -rf *'
|
|
}
|
|
}
|
|
}
|
|
} |