mlflow first try
This commit is contained in:
parent
e84532b331
commit
9b7234668d
39
Jenkinsfile_mlflow
Normal file
39
Jenkinsfile_mlflow
Normal 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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user