diff --git a/Dockerfile b/Dockerfile index 6a8af03..60f02a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ FROM ubuntu:20.04 RUN apt-get update -RUN apt install -y python3 python3-pip +RUN apt install -y python3 python3-pip +RUN pip3 install --user kaggle RUN pip3 install mlflow sklearn dvc 'dvc[ssh]' paramiko #RUN apt install -y sshpass openssh-client #RUN useradd -r -u 111 jenkins diff --git a/Jenkinsfile b/Jenkinsfile index f111b7d..e40928f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,6 +19,13 @@ node { img.inside('-v /tmp/mlruns:/tmp/mlruns -v /mlruns:/mlruns ') { + stage("Kaggle"){ + withCredentials([usernamePassword(credentialsId: '53ff19bf-dbb7-4275-a609-634b57fe0627', passwordVariable: 'KAGGLE_KEY', usernameVariable: 'KAGGLE_USERNAME')]) { + sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME' + sh 'kaggle datasets list' + } + } + // stage('MLflow') { // sh 'ls -l /tmp/mlruns' // sh 'ls -l /mlruns'