IUM_07 - fix models/Jenkinsfile

This commit is contained in:
Paweł Łączkowski 2024-04-26 09:41:35 +02:00
parent 5aa6a770d1
commit ceb1643cc0

2
models/Jenkinsfile vendored
View File

@ -52,6 +52,8 @@ pipeline {
sh "chmod +x ./create_model.py" sh "chmod +x ./create_model.py"
sh "python3 ./create_model.py with 'num_epochs=${params.epochs}' 'learning_rate=${params.learning_rate}' 'weight_decay=${params.weight_decay}'" sh "python3 ./create_model.py with 'num_epochs=${params.epochs}' 'learning_rate=${params.learning_rate}' 'weight_decay=${params.weight_decay}'"
archiveArtifacts artifacts: "models/model.pth", onlyIfSuccessful: true
def experiment_id = readFile('experiment_id.txt').trim() def experiment_id = readFile('experiment_id.txt').trim()
archiveArtifacts artifacts: "my_runs/${experiment_id}/*", onlyIfSuccessful: true archiveArtifacts artifacts: "my_runs/${experiment_id}/*", onlyIfSuccessful: true