ium_478815/Jenkinsfile_evaluation

59 lines
1.8 KiB
Plaintext
Raw Normal View History

2022-05-06 21:09:02 +02:00
pipeline {
agent {
dockerfile {
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=51854c15661583860a60db232a7026f0 --build-arg CUTOFF=${params.CUTOFF} -t kgirejko"
}
}
parameters {
string(
defaultValue: 'kgirejko',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '51854c15661583860a60db232a7026f0',
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 {
2022-05-06 21:16:32 +02:00
stage('Main'){
2022-05-06 21:09:02 +02:00
steps {
2022-05-06 21:11:25 +02:00
2022-05-06 21:16:32 +02:00
copyArtifacts filter: '*', projectName: 's478815-create-dataset
copyArtifacts filter: '*', projectName: 's478815/master'
copyArtifacts filter: '*', projectName: 's478815-evaluation/master'
2022-05-06 21:17:34 +02:00
sh 'python3 ./evaluation.py'
2022-05-06 21:16:32 +02:00
archiveArtifacts artifacts: 'metrics.txt, metrics.png', followSymlinks: false
2022-05-06 21:09:02 +02:00
2022-05-06 21:16:32 +02:00
build job: 's478815-evaluation/master/'
2022-05-06 21:09:02 +02:00
}
}
}
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'
}
unstable {
emailext body: 'UNSTABLE', subject: 's478815-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
changed {
emailext body: 'CHANGED', subject: 's478815-training', to: 'e19191c5.uam.onmicrosoft.com@emea.teams.ms'
}
}
}