next fix :(

This commit is contained in:
Dominik Strzako 2021-05-14 18:07:29 +02:00
parent 2cbc396787
commit ae57426891

View File

@ -1,22 +1,38 @@
pipeline { pipeline {
agent {dockerfile true} agent {docker { image 'snowycocoon/ium_434788:2' }}
parameters { parameters{
buildSelector( buildSelector(
defaultSelector: lastSuccessful(), defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts', description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR') name: 'WHICH_BUILD'
)
string( string(
defaultValue: '500', defaultValue: '16',
description: 'Enter the number of Epochs', description: 'batch size',
name: 'epochs', name: 'BATCH_SIZE'
trim: false) )
string(
defaultValue: '15',
description: 'epochs',
name: 'EPOCHS'
)
} }
stages { stages {
stage('copyArtifacts') { stage('copy artifacts')
steps { {
copyArtifacts fingerprintArtifacts: true, projectName: 's434788-create-dataset', selector: buildParameter('BUILD_SELECTOR') steps
sh 'python3 Zadanie_06_training.py ${epochs}' {
copyArtifacts(fingerprintArtifacts: true, projectName: 's434788-create-dataset', selector: buildParameter('WHICH_BUILD'))
}
}
stage('train')
{
steps
{
catchError {
sh 'python3.8 Zadanie_06_training'
}
} }
} }