ium_478815/Jenkinsfile_sacred

46 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-05-07 13:59:58 +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 {
stage('Main train'){
steps {
copyArtifacts filter: '*', projectName: 's478815-create-dataset'
2022-05-08 19:19:06 +02:00
sh 'python3 ./train-sacred.py with "epochs=$EPOCHS"'
2022-05-08 19:31:14 +02:00
2022-05-08 19:38:43 +02:00
sh 'cp s478815/config.json configuration.json'
sh 'cp s478815/info.json param.json'
sh 'cp s478815/* modelS.pkl'
2022-05-08 19:19:06 +02:00
archiveArtifacts artifacts: 'modelP.pkl, source_code.py, configuration.json, param.json, modelS.pkl'
sh 'rm -r s478815'
2022-05-07 13:59:58 +02:00
2022-05-08 19:10:43 +02:00
build job: 's478815-evaluation/master/'
2022-05-07 13:59:58 +02:00
}
}
}
}