ium_444386/Jenkinsfile

28 lines
857 B
Plaintext
Raw Normal View History

2022-03-21 10:57:17 +01:00
pipeline {
agent any
stages {
2022-03-21 22:08:38 +01:00
string(
defaultValue: 'Szymon Jadczak'
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'
)
environment {
KAGGLE_USERNAME="$params.KAGGLE_USERNAME"
KAGGLE_KEY="$params.KAGGLE_KEY"
}
2022-03-21 10:57:17 +01:00
stage('Stage 1') {
steps {
2022-03-21 21:55:23 +01:00
echo 'Hello world!!!'
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s444386/ium_444386']]])
2022-03-21 22:08:38 +01:00
sh: "KAGGLE_USERNAME=${KAGGLE_USERNAME} KAGGLE_KEY=${KAGGLE_KEY} ./download_dataset.sh"
2022-03-21 10:57:17 +01:00
}
}
}
}