Update Jenkinsfile3
This commit is contained in:
parent
317896e141
commit
2327ad6e6b
34
Jenkinsfile3
34
Jenkinsfile3
@ -32,39 +32,7 @@ pipeline {
|
||||
}
|
||||
stage('Run in container'){
|
||||
docker.image('test-image').inside {
|
||||
stage('Build') {
|
||||
steps {
|
||||
// Run the maven build
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
||||
sh 'kaggle datasets list'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
// Krok: Sklonowanie repozytorium git
|
||||
checkout scm
|
||||
}
|
||||
}
|
||||
stage('Execute Shell Script') {
|
||||
steps {
|
||||
withEnv(["CUTOFF=${params.CUTOFF}" ]) {
|
||||
// Krok: Wywołanie skryptu shella
|
||||
script {
|
||||
sh 'chmod +x data_processing_script.sh' // Nadaj uprawnienia do wykonania skryptu
|
||||
sh './data_processing_script.sh $CUTOFF' // Wykonaj skrypt
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Archive Artifacts') {
|
||||
steps {
|
||||
// Krok: Zarchiwizowanie artefaktów
|
||||
archiveArtifacts artifacts: 'processed_data.csv', fingerprint: true
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user