ium_444421/Jenkinsfile

33 lines
965 B
Plaintext
Raw Normal View History

2022-03-21 10:59:30 +01:00
pipeline {
agent any
2022-03-26 15:22:41 +01:00
parameters {
string(
defaultValue: '',
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'
)
}
2022-03-21 10:59:30 +01:00
stages {
2022-03-26 15:22:41 +01:00
stage('Check out from version control') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s444421/ium_444421.git']]])
}
}
stage('Shell Script') {
2022-03-21 10:59:30 +01:00
steps {
2022-03-26 15:22:41 +01:00
sh 'chmod u+x ./download_data.sh'
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}","KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh './download_data.sh'
}
archiveArtifacts 'travel_insurance_data.txt'
2022-03-21 10:59:30 +01:00
}
}
}
}