Zaktualizuj 'Jenkinsfile_train'
This commit is contained in:
parent
c8cd2feaee
commit
fa881a8767
@ -17,16 +17,31 @@ pipeline {
|
|||||||
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
||||||
name: 'KAGGLE_KEY'
|
name: 'KAGGLE_KEY'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
string(
|
||||||
|
defaultValue: '1000',
|
||||||
|
description: 'Number of epochs',
|
||||||
|
name: 'EPOCHS',
|
||||||
|
trim: false
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('First'){
|
stage('First'){
|
||||||
steps {
|
steps {
|
||||||
copyArtifacts filter: '*', projectName: 's478815-create-dataset'
|
copyArtifacts filter: '*', projectName: 's478815-create-dataset'
|
||||||
sh 'python3 ./DL.py'
|
sh 'python3 ./DL.py $EPOCHS'
|
||||||
archiveArtifacts artifacts: 'modelP.pkl', followSymlinks: false
|
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'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user