next fix :(

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

View File

@ -1,24 +1,40 @@
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( )
defaultValue: '500', string(
description: 'Enter the number of Epochs', defaultValue: '16',
name: 'epochs', description: 'batch size',
trim: false) name: 'BATCH_SIZE'
} )
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'
}
}
} }
}
stage('Archive artifacts') { stage('Archive artifacts') {
steps{ steps{