Update Jenkinsfile

This commit is contained in:
s464903 2024-03-20 12:34:32 +01:00
parent 1f621a9ae7
commit 478885e2be
1 changed files with 19 additions and 3 deletions

22
Jenkinsfile vendored
View File

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