testing Jenkinsfile
This commit is contained in:
parent
9139eaec87
commit
1ab5347d39
30
Jenkinsfile
vendored
Normal file
30
Jenkinsfile
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
pipeline {
|
||||
agent any
|
||||
parameters {
|
||||
string(
|
||||
defaultValue: 'worldwidepaniel',
|
||||
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('Checkout') {
|
||||
steps {
|
||||
checkout scm
|
||||
sh 'ls -las'
|
||||
}
|
||||
}
|
||||
stage('Download dataset and manipulate dataset') {
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||
sh "./data_download.sh"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
3
data_download.sh
Normal file
3
data_download.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
kaggle datasets download iabhishekofficial/mobile-price-classification
|
||||
sed 's/\([^,]*\),\(.*\)/\2/' test.csv
|
Loading…
Reference in New Issue
Block a user