diff --git a/Jenkinsfile b/Jenkinsfile index e702f16..8c74803 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,29 +1,25 @@ pipeline { agent any + parameters([ + string( + defaultValue: '0', + description: 'Umożliwia zdefiniowanie wielkości odcięcia zbioru danych.', + name: 'CUTOFF', + trim: false + ), + string( + defaultValue: 'rokoch', + 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('Preparation') { - properties([ - parameters([ - string( - defaultValue: '0', - description: 'Umożliwia zdefiniowanie wielkości odcięcia zbioru danych.', - name: 'CUTOFF', - trim: false - ), - string( - defaultValue: 'rokoch', - 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('checkout') { steps { checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s426206/ium_426206.git']]]) @@ -42,8 +38,10 @@ pipeline { } stage('end') { - //Zarchiwizuj wynik - archiveArtifacts 'output.txt' + steps { + //Zarchiwizuj wynik + archiveArtifacts 'output.txt' + } } } } \ No newline at end of file