2022-05-06 18:56:07 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
2022-05-06 19:46:27 +02:00
|
|
|
dockerfile {
|
|
|
|
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=51854c15661583860a60db232a7026f0 --build-arg CUTOFF=${params.CUTOFF} -t kgirejko"
|
|
|
|
}
|
2022-05-06 19:47:15 +02:00
|
|
|
}
|
2022-05-06 19:36:02 +02:00
|
|
|
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'
|
|
|
|
)
|
2022-05-06 20:08:34 +02:00
|
|
|
|
|
|
|
string(
|
|
|
|
defaultValue: '1000',
|
|
|
|
description: 'Number of epochs',
|
|
|
|
name: 'EPOCHS',
|
|
|
|
trim: false
|
2022-05-06 20:10:11 +02:00
|
|
|
)
|
2022-05-06 19:36:02 +02:00
|
|
|
}
|
|
|
|
|
2022-05-06 19:19:11 +02:00
|
|
|
stages {
|
2022-05-06 19:27:12 +02:00
|
|
|
stage('First'){
|
2022-05-06 19:19:11 +02:00
|
|
|
steps {
|
2022-05-06 20:08:34 +02:00
|
|
|
copyArtifacts filter: '*', projectName: 's478815-create-dataset'
|
2022-05-06 20:14:48 +02:00
|
|
|
sh 'python3 ./DL.py $EPOCHS'
|
2022-05-06 19:39:37 +02:00
|
|
|
archiveArtifacts artifacts: 'modelP.pkl', followSymlinks: false
|
2022-05-06 19:19:11 +02:00
|
|
|
|
|
|
|
}
|
2022-05-06 19:11:58 +02:00
|
|
|
}
|
2022-05-06 19:19:11 +02:00
|
|
|
}
|
2022-05-06 20:08:34 +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'
|
|
|
|
}
|
|
|
|
}
|
2022-05-06 19:36:02 +02:00
|
|
|
}
|