From ac26c9c7ad2e26a14537856d20b6e66d27fad5c3 Mon Sep 17 00:00:00 2001 From: Wojciech Jarmosz Date: Sat, 10 Apr 2021 21:09:10 +0200 Subject: [PATCH] Add Dockerfile support for Jenkins --- Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index e1fa8ed..b2f9882 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,7 @@ pipeline { -agent any +agent { + dockerfile true + } parameters { string(defaultValue: '5', description: 'Amount of lines to cut off the file.', name: 'CUTOFF', trim: false) } @@ -8,6 +10,7 @@ stages { steps { withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}" ]) { + sh 'python3 script.py' // Uruchomienie skryptu sh "chmod 777 ./data_download.sh" sh "./data_download.sh"