diff --git a/Jenkinsfile b/Jenkinsfile index 50b63f5..94af183 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,31 +2,33 @@ pipeline { agent { docker { image 'adnovac/ium_s434760:latest' } } - parameters{ - string( - defaultValue: 'annadnowak', - description: 'Kaggle username', - name: 'KAGGLE_USERNAME', - trim: false - ) - password( - defaultValue: '', - description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials', - name: 'KAGGLE_KEY' - ) - stage('docker: Download artifacts') - { - steps { - withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", - "KAGGLE_KEY=${params.KAGGLE_KEY}"]) { - sh 'python3.8 \"Zadanie 1.py\"' - } + parameters { + string( + defaultValue: 'annadnowak', + description: 'Kaggle username', + name: 'KAGGLE_USERNAME', + trim: false + ) + password( + defaultValue: '', + description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials', + name: 'KAGGLE_KEY' + ) + } + stages { + stage('docker: Download artifacts') + { + steps { + withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", + "KAGGLE_KEY=${params.KAGGLE_KEY}"]) { + sh 'python3.8 \"Zadanie 1.py\"' + } + } + } + stage('archive artifacts') { + steps { + archiveArtifacts 'test.csv,data_shuf.csv,validation.csv,train.csv,header.csv' } } } - stage('archive artifacts') { - steps { - archiveArtifacts 'test.csv,data_shuf.csv,validation.csv,train.csv,header.csv' - } - } } \ No newline at end of file