ium_434684/Jenkinsfile_training

31 lines
777 B
Plaintext

pipeline {
agent {dockerfile true}
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
string(name: 'LEARNING_RATE', defaultValue: '0.0001', description: 'What should be the learning rate?')
}
stages {
stage('copyArtifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's434684-create-dataset', selector: buildParameter('BUILD_SELECTOR')
}
}
stage('Sh script') {
steps {
sh 'chmod +x run_training.sh'
sh './run_training.sh'
}
}
stage('Archive artifacts') {
steps{
archiveArtifacts artifacts: 'model_movies'
}
}
}
}