Zaktualizuj 'Jenkinsfile_sacred'

This commit is contained in:
Kornelia Girejko 2022-05-15 12:54:40 +02:00
parent 0430d199a9
commit 293a2d5fe4

View File

@ -1,7 +1,6 @@
pipeline {
agent {
dockerfile {
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=51854c15661583860a60db232a7026f0 --build-arg CUTOFF=${params.CUTOFF} -t kgirejko"
docker { image 'korneliag/ium478815:1.0' }
}
}
parameters {
@ -30,12 +29,8 @@ pipeline {
stage('Main train'){
steps {
copyArtifacts filter: '*', projectName: 's478815-create-dataset'
sh 'python3 ./train-sacred.py with "epochs=$EPOCHS"'
archiveArtifacts artifacts: 'experiment/_sources/*, experiment/**, modelS.pkl, output.txt'
sh 'rm -r experiment'
build job: 's478815-evaluation/master/'
sh 'python3 ./train-mlflow.py with "epochs=$EPOCHS"'
}
}
}