ium_434684/Jenkinsfile_training
2021-05-02 17:36:11 +02:00

30 lines
695 B
Plaintext

pipeline {
agent {dockerfile true}
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
}
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 ${params.LEARNING_RATE}'
}
}
stage('Archive artifacts') {
steps{
archiveArtifacts artifacts: 'model_movies'
}
}
}
}