Zaktualizuj 'Jenkinsfile_train'

This commit is contained in:
Kornelia Girejko 2022-05-06 20:08:34 +02:00
parent c8cd2feaee
commit fa881a8767

View File

@ -17,16 +17,31 @@ pipeline {
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
string(
defaultValue: '1000',
description: 'Number of epochs',
name: 'EPOCHS',
trim: false
}
stages {
stage('First'){
steps {
copyArtifacts filter: '*', projectName: 's478815-create-dataset'
sh 'python3 ./DL.py'
copyArtifacts filter: '*', projectName: 's478815-create-dataset'
sh 'python3 ./DL.py $EPOCHS'
archiveArtifacts artifacts: 'modelP.pkl', followSymlinks: false
}
}
}
post {
success {
emailext body: 'SUCCESS', subject: 's478815-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
failure {
emailext body: 'FAILURE', subject: 's478815-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
}
}