2022-05-11 14:37:18 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
2022-05-15 11:12:24 +02:00
|
|
|
dockerfile {
|
|
|
|
filename 'Dockerfile'
|
2022-05-15 11:29:26 +02:00
|
|
|
args '-v /mlruns:/mlruns'
|
2022-05-15 11:08:59 +02:00
|
|
|
}
|
2022-05-11 14:37:18 +02:00
|
|
|
}
|
|
|
|
|
2022-05-15 11:08:59 +02:00
|
|
|
|
2022-05-11 14:37:18 +02:00
|
|
|
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}"]) {
|
2022-05-15 11:29:26 +02:00
|
|
|
sh 'python3 ./nn_train_mlflow.py'
|
|
|
|
archiveArtifacts artifacts: 'mlruns/**'
|
2022-05-11 14:37:18 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|