Update Jenkinsfile
This commit is contained in:
parent
1f621a9ae7
commit
478885e2be
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
@ -1,11 +1,27 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Stage 1') {
|
stage('Checkout') {
|
||||||
steps {
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user