ium_434684/Jenkinsfile_training

35 lines
942 B
Plaintext
Raw Normal View History

2021-05-02 17:12:44 +02:00
pipeline {
agent {dockerfile true}
2021-05-15 17:52:44 +02:00
options {
copyArtifactPermission('s434684-evaluation/master');
}
2021-05-02 17:36:11 +02:00
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?')
2021-05-02 17:36:11 +02:00
}
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'
2021-05-15 16:20:20 +02:00
withEnv(["LEARNING_RATE=${params.LEARNING_RATE}"]) {
2021-05-15 16:45:04 +02:00
sh './run_training.sh $LEARNING_RATE'
2021-05-15 16:20:20 +02:00
}
2021-05-02 17:12:44 +02:00
}
}
stage('Archive artifacts') {
steps{
2021-05-16 11:55:28 +02:00
archiveArtifacts artifacts: 'model_movies.h5,my_runs/**'
2021-05-02 17:12:44 +02:00
}
}
}
}