From 478885e2be51c9d3bd5a6409ae94dee1c88b1ac5 Mon Sep 17 00:00:00 2001 From: s464903 Date: Wed, 20 Mar 2024 12:34:32 +0100 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a32e614..5a5456a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,27 @@ pipeline { agent any + stages { - stage('Stage 1') { + stage('Checkout') { steps { - echo 'Hello world!' + // Krok: Sklonowanie repozytorium git + checkout scm + } + } + stage('Execute Shell Script') { + steps { + // Krok: Wywołanie skryptu shella + script { + sh 'chmod +x data_processing_script.sh' // Nadaj uprawnienia do wykonania skryptu + sh './data_processing_script.sh' // Wykonaj skrypt + } + } + } + stage('Archive Artifacts') { + steps { + // Krok: Zarchiwizowanie artefaktów + archiveArtifacts artifacts: 'processed_data/*', fingerprint: true } } } } -