From ac3fa8bca2bb486016bf68ec765ad7f87b95bef6 Mon Sep 17 00:00:00 2001 From: Zofia Galla Date: Sun, 11 Apr 2021 14:02:07 +0200 Subject: [PATCH] Update Jenkinsfile - save artifacts --- Jenkinsfile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c68990c..8cb7d8b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,8 +1,5 @@ pipeline { - agent { dockerfile - { - args 'ti' - }} + agent { dockerfile true} stages { @@ -10,15 +7,15 @@ pipeline { steps { withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { - sh 'chmod +x jenkins_script.sh' - sh './jenkins_script.sh' + sh 'chmod +x run.sh' + sh './run.sh > netflix_stats.txt' } } } stage('Archive artifacts') { steps{ - archiveArtifacts artifacts: 'netflix_split_*.csv' + archiveArtifacts artifacts: 'netflix_stats.txt' } } }