2022-05-15 12:43:44 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
2022-05-15 13:20:51 +02:00
|
|
|
dockerfile {
|
|
|
|
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF} -t sebastianwalesa"
|
|
|
|
}
|
2022-05-15 12:43:44 +02:00
|
|
|
}
|
|
|
|
parameters {
|
|
|
|
string(
|
|
|
|
defaultValue: '1000',
|
|
|
|
description: 'Number of epochs',
|
|
|
|
name: 'EPOCHS',
|
|
|
|
trim: false
|
|
|
|
)
|
|
|
|
}
|
|
|
|
stages {
|
2022-05-15 12:47:16 +02:00
|
|
|
stage('MLflow-stage'){
|
2022-05-15 12:43:44 +02:00
|
|
|
steps {
|
|
|
|
copyArtifacts filter: '*', projectName: 's478839-create-dataset'
|
2022-05-15 13:22:05 +02:00
|
|
|
sh 'python3 ml_pytorch_mlflow.py with "epochs=$EPOCHS"'
|
2022-05-15 12:43:44 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|