From 0c51451a07edf43ec637bc14f15e7abf33eb1dae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Zar=C4=99ba?= Date: Mon, 27 Mar 2023 21:22:53 +0200 Subject: [PATCH] t --- Jenkinsfile | 38 +++++++++++++++++--------------------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8e2f671..2958e64 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,8 @@ node { + stage('Clone Git Repository') { + git 'https://git.wmi.amu.edu.pl/s487187/ium_487187.git' + } + stage('Preparation') { properties([ parameters([ @@ -21,30 +25,22 @@ node { withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME' - sh 'kaggle datasets list' + sh ''' + #!/bin/bash + pip install kaggle + + kaggle datasets download nitishsharma01/olympics-124-years-datasettill-2020 + + unzip -o olympics-124-years-datasettill-2020.zip + + echo "Processed Data" > output.txt + cat processed_data.txt >> output.txt + + archiveArtifacts 'output.txt' + ''' } } - stage('Clone Git Repository') { - git 'https://git.wmi.amu.edu.pl/s487187/ium_487187.git' - } - - stage('Process Data') { - sh ''' - #!/bin/bash - pip install kaggle - - kaggle datasets download nitishsharma01/olympics-124-years-datasettill-2020 - - unzip -o olympics-124-years-datasettill-2020.zip - - echo "Processed Data" > output.txt - cat processed_data.txt >> output.txt - - archiveArtifacts 'output.txt' - ''' - } - stage('End') { echo 'Program ended!'