This commit is contained in:
PawelDopierala 2024-04-02 21:32:37 +02:00
parent 7d1f6d9b3c
commit 6a8fbc8da5
2 changed files with 2 additions and 13 deletions

8
Jenkinsfile vendored
View File

@ -35,19 +35,13 @@ pipeline {
steps { steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'chmod 777 data_processing.py'
sh 'python data_processing.py' sh 'python data_processing.py'
} }
} }
} }
stage('Artifacts') { stage('Artifacts') {
steps { steps {
script { archiveArtifacts artifacts: 'hp_train.csv,hp_dev.csv,hp_test.csv'
def artifactsList = ['hp_train.csv', 'hp_dev.csv', 'hp_test.csv']
artifactsList.each { artifact ->
archiveArtifacts artifacts: artifact
}
}
} }
} }
} }

View File

@ -33,12 +33,7 @@ pipeline {
} }
stage('Artifacts') { stage('Artifacts') {
steps { steps {
script { archiveArtifacts artifacts: 'hp_train_stats.csv,hp_dev_stats.csv,hp_test_stats.csv'
def artifactsList = ['hp_train_stats.csv', 'hp_dev_stats.csv', 'hp_test_stats.csv'']
artifactsList.each { artifact ->
archiveArtifacts artifacts: artifact
}
}
} }
} }
} }