ium_434684/Jenkinsfile_training

30 lines
695 B
Plaintext
Raw Normal View History

2021-05-02 17:12:44 +02:00
pipeline {
agent {dockerfile true}
2021-05-02 17:36:11 +02:00
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
}
2021-05-02 17:12:44 +02:00
stages {
stage('copyArtifacts') {
steps {
2021-05-02 17:36:11 +02:00
copyArtifacts fingerprintArtifacts: true, projectName: 's434684-create-dataset', selector: buildParameter('BUILD_SELECTOR')
2021-05-02 17:12:44 +02:00
}
}
stage('Sh script') {
steps {
sh 'chmod +x run_training.sh'
sh './run_training.sh ${params.LEARNING_RATE}'
}
}
stage('Archive artifacts') {
steps{
archiveArtifacts artifacts: 'model_movies'
}
}
}
}