ium_444421/training.Jenkinsfile

32 lines
901 B
Plaintext
Raw Normal View History

2022-04-29 19:17:50 +02:00
pipeline {
agent {
dockerfile true
}
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
string(
defaultValue: '1000',
description: 'Number of epochs',
name: 'EPOCHS'
)
}
stages {
stage('Check out from version control') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444421', url: 'https://git.wmi.amu.edu.pl/s444421/ium_444421.git']]])
}
}
stage('Script') {
steps {
2022-04-29 19:33:27 +02:00
copyArtifacts filter: '*', projectName:'s444421-create-dataset', selector: buildParameter('BUILD_SELECTOR')
2022-04-29 19:17:50 +02:00
sh 'ipython ./training.py $EPOCHS'
archiveArtifacts artifacts: 'model.pth'
}
}
}
}