diff --git a/Jenkinsfile b/Jenkinsfile index e46f66e..4e1b4f8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,6 +19,22 @@ pipeline { } } } - } - + stage('Run Script') { + steps { + script { + withEnv([ + "KAGGLE_USERNAME=${env.KAGGLE_USERNAME}", + "KAGGLE_KEY=${env.KAGGLE_KEY}"]) + { + sh "bash ./download_dataset.sh" + } + } + } + } + stage('Archive Artifacts') { + steps { + archiveArtifacts artifacts: 'artifacts/*', onlyIfSuccessful: true + } + } + } }