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 } } } } -