diff --git a/Jenkinsfile b/Jenkinsfile index 045f2ee..f51ed75 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,23 +13,17 @@ pipeline { stages { stage('checkout: Check out from version control') { steps { - git branch: 'master', - url: 'https://git.wmi.amu.edu.pl/s434784/ium_434784' + git 'https://git.wmi.amu.edu.pl/s434784/ium_434784' } } stage('sh: Shell Script') { steps { - // withEnv(['KAGGLE_USERNAME=$params.username', - // 'KAGGLE_KEY=$params.key' ]) { - // sh "KAGGLE_USERNAME=${params.username} KAGGLE_KEY=${params.key} kaggle datasets download -d szamil/who-suicide-statistics" - // sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME' - // sh 'kaggle datasets download -d szamil/who-suicide-statistics' - // } - withEnv(["KAGGLE_USERNAME=${params.username}", + withEnv(["KAGGLE_USERNAME=${params.username}", "KAGGLE_KEY=${params.key}" ]) { - sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME' - sh 'kaggle datasets list' - } + sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME' + sh 'chmod +x preparations.sh' + sh './preparations.sh' + } } } } diff --git a/preparations.sh b/preparations.sh new file mode 100755 index 0000000..c570636 --- /dev/null +++ b/preparations.sh @@ -0,0 +1,2 @@ +kaggle datasets download -d szamil/who-suicide-statistics +