From 308e2b194f67eebd62c86edb8059e4698be295e4 Mon Sep 17 00:00:00 2001 From: s452487 Date: Mon, 1 Apr 2024 20:04:28 +0200 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 36 +++++++++--------------------------- 1 file changed, 9 insertions(+), 27 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 23c7def..442e5fc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,29 +1,11 @@ pipeline { - agent any - stages { - stage('checkout: Check out from version control') { - steps { - echo 'username_visibility_test2: ${kaggle_username}' - echo 'password_visibility_test2: ${kaggle_password}' - - echo "Checkout robiony deklaratywnie przez konfiguracje pipeline'u" - // git clone https://git.wmi.amu.edu.pl/s452487/ium_452487.git - echo "Zawartość folderu:" - sh "ls" - } - } - stage('sh: Shell Script') { - steps { - echo "Przetwarzanie zbioru danych..." - sh "chmod +x -R ${env.WORKSPACE}" - sh "./dataset_download.sh" - } - } - stage('archiveArtifacts') { - steps { - echo "Zapisywanie artefaktów..." - archiveArtifacts 'extracted_dataset/2022/processed.csv' - } - } - } + agent { dockerfile true } + stages { + stage('Dataset download and stats') { + steps { + sh "chmod +x -R ${env.WORKSPACE}" + sh './dataset_download_and_run.sh' + } + } + } } \ No newline at end of file