diff --git a/Jenkinsfile b/Jenkinsfile index 69b4a9f..442b03f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,19 +35,13 @@ pipeline { steps { withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { - sh 'chmod 777 data_processing.py' sh 'python data_processing.py' } } } stage('Artifacts') { steps { - script { - def artifactsList = ['hp_train.csv', 'hp_dev.csv', 'hp_test.csv'] - artifactsList.each { artifact -> - archiveArtifacts artifacts: artifact - } - } + archiveArtifacts artifacts: 'hp_train.csv,hp_dev.csv,hp_test.csv' } } } diff --git a/JenkinsfileStats b/JenkinsfileStats index e8723b6..e1a91e6 100644 --- a/JenkinsfileStats +++ b/JenkinsfileStats @@ -33,12 +33,7 @@ pipeline { } stage('Artifacts') { steps { - script { - def artifactsList = ['hp_train_stats.csv', 'hp_dev_stats.csv', 'hp_test_stats.csv''] - artifactsList.each { artifact -> - archiveArtifacts artifacts: artifact - } - } + archiveArtifacts artifacts: 'hp_train_stats.csv,hp_dev_stats.csv,hp_test_stats.csv' } } }