ium_478839/Jenkinsfile-sacred

31 lines
857 B
Plaintext
Raw Normal View History

2022-05-08 19:36:46 +02:00
pipeline {
agent {
dockerfile {
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF} -t sebastianwalesa"
}
}
parameters {
string(
defaultValue: '1000',
description: 'Number of epochs',
name: 'EPOCHS',
trim: false
)
}
stages {
stage('Sacred-stage'){
steps {
copyArtifacts filter: '*', projectName: 's478839-create-dataset'
2022-05-08 19:42:55 +02:00
sh 'python3 ml_pytroch_sacred.py with "epochs=$EPOCHS"'
2022-05-09 11:17:16 +02:00
archiveArtifacts artifacts: 'IUM_478839/**, result.txt, Model_xPosition.pkl'
2022-05-08 20:15:33 +02:00
sh 'rm -r IUM_478839'
2022-05-08 19:36:46 +02:00
}
}
2022-05-08 20:27:35 +02:00
stage('Evaluation-job'){
steps {
build job: 's478839-evaluation/feature/'
}
}
2022-05-08 19:36:46 +02:00
}
}