This commit is contained in:
Jakub Zaręba 2023-03-27 21:21:24 +02:00
parent 8bad280c06
commit 30309c70c6

37
Jenkinsfile vendored
View File

@ -1,21 +1,21 @@
node { node {
// stage('Preparation') { stage('Preparation') {
// properties([ properties([
// parameters([ parameters([
// string( string(
// defaultValue: 'mjaykey', defaultValue: '',
// description: 'Kaggle username', description: 'Kaggle username',
// name: 'KAGGLE_USERNAME', name: 'KAGGLE_USERNAME',
// trim: false trim: false
// ), ),
// password( password(
// defaultValue: '057cd03e1ed63922f7df5430d3690899', defaultValue: '',
// description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials', description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
// name: 'KAGGLE_KEY' name: 'KAGGLE_KEY'
// ) )
// ]) ])
// ]) ])
// } }
stage('Build') { stage('Build') {
// Run the maven build // Run the maven build
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
@ -34,9 +34,6 @@ node {
#!/bin/bash #!/bin/bash
pip install kaggle pip install kaggle
export KAGGLE_USERNAME=mjaykey
export KAGGLE_KEY=057cd03e1ed63922f7df5430d3690899
kaggle datasets download nitishsharma01/olympics-124-years-datasettill-2020 kaggle datasets download nitishsharma01/olympics-124-years-datasettill-2020
unzip -o olympics-124-years-datasettill-2020.zip unzip -o olympics-124-years-datasettill-2020.zip