From 32718c0ae7576589da28398d3a364ca130ffd458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Zi=C4=99tkiewicz?= Date: Sun, 10 Apr 2022 13:51:38 +0200 Subject: [PATCH] Added kaggle test --- Dockerfile | 3 ++- Jenkinsfile | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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'