2024-03-20 11:17:00 +01:00
|
|
|
pipeline {
|
2024-03-20 12:11:18 +01:00
|
|
|
agent any
|
2024-03-20 12:34:32 +01:00
|
|
|
|
2024-03-20 12:11:18 +01:00
|
|
|
stages {
|
2024-03-20 12:34:32 +01:00
|
|
|
stage('Checkout') {
|
2024-03-20 12:11:18 +01:00
|
|
|
steps {
|
2024-03-20 12:34:32 +01:00
|
|
|
// 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
|
2024-03-20 12:11:18 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-03-20 12:22:50 +01:00
|
|
|
}
|