From 53d6148dd99f9975ecf455350f08c72e34d6c934 Mon Sep 17 00:00:00 2001 From: Wojciech Jarmosz Date: Sat, 10 Apr 2021 22:39:26 +0200 Subject: [PATCH] Add kaggle env support for stats --- Jenkinsfile_stats | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile_stats b/Jenkinsfile_stats index e11b7bd..e39a508 100644 --- a/Jenkinsfile_stats +++ b/Jenkinsfile_stats @@ -8,12 +8,15 @@ pipeline { stages { stage("Clone repo & print stats"){ steps { + withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", + "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { sh "python3 script.py" copyArtifacts fingerprintArtifacts: true, projectName: 's434704-create-dataset', selector: buildParameter('BUILD_SELECTOR') sh "chmod 777 ./count_files_lines.sh" sh "./count_files_lines.sh" archiveArtifacts "stats.txt" } + } } } } \ No newline at end of file