ium_434788/Jenkinsfile_train
Dominik Strzako 2cbc396787 hotfix 6_1
2021-05-13 20:00:03 +02:00

48 lines
1.3 KiB
Plaintext

pipeline {
agent {dockerfile true}
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR')
string(
defaultValue: '500',
description: 'Enter the number of Epochs',
name: 'epochs',
trim: false)
}
stages {
stage('copyArtifacts') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName: 's434788-create-dataset', selector: buildParameter('BUILD_SELECTOR')
sh 'python3 Zadanie_06_training.py ${epochs}'
}
}
stage('Archive artifacts') {
steps{
archiveArtifacts 'model_movies/**'
}
}
}
post {
success {
build job: 's434788-evaluation/master'
mail body: 'SUCCESS',
subject: 's434788',
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
unstable {
mail body: 'UNSTABLE', subject: 's434788', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
mail body: 'FAILURE', subject: 's434788', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
changed {
mail body: 'CHANGED', subject: 's434788', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
}
}
}