mlflow first try

This commit is contained in:
Kamila 2022-05-11 14:37:18 +02:00
parent e84532b331
commit 9b7234668d

39
Jenkinsfile_mlflow Normal file
View File

@ -0,0 +1,39 @@
pipeline {
agent {
dockerfile true
}
parameters {
string(
defaultValue: 'kamilab0bkowska',
description: 'kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '',
description: 'kaggle passowrd',
name: 'KAGGLE_KEY'
)
}
stages {
stage('Stage 1') {
steps {
echo 'Hello world!'
}
}
stage('Run mlflow on nn_train') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
sh 'python3 ./nn_train_mlflow.py'
archiveArtifacts artifacts: 'mlruns/**'
sh 'rm -r mlruns'
}
}
}
}
}