Fixes
This commit is contained in:
parent
58c31c3a9f
commit
a22b4cc571
21
Jenkinsfile
vendored
21
Jenkinsfile
vendored
@ -12,12 +12,31 @@ node {
|
|||||||
defaultValue: "10000",
|
defaultValue: "10000",
|
||||||
description: "How many records use",
|
description: "How many records use",
|
||||||
name: "CUTOFF"
|
name: "CUTOFF"
|
||||||
|
),
|
||||||
|
string (
|
||||||
|
defaultValue: 'andrzejpreibisz',
|
||||||
|
description: 'Kaggle username',
|
||||||
|
name: 'KAGGLE_USERNAME',
|
||||||
|
trim: false
|
||||||
|
),
|
||||||
|
password(
|
||||||
|
defaultValue: '',
|
||||||
|
description: 'Kaggle token key',
|
||||||
|
name: 'KAGGLE_KEY'
|
||||||
)
|
)
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
stage("Git clone"){
|
||||||
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444465', url: 'https://git.wmi.amu.edu.pl/s444465/ium_444465']]])
|
||||||
|
}
|
||||||
stage('Download') {
|
stage('Download') {
|
||||||
sh "dataset_script.sh \"${CUTOFF}\""
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
|
"KAGGLE_KEY=${params.KAGGLE_KEY}",
|
||||||
|
"CUTOFF=${params.CUTOFF}"]) {
|
||||||
|
sh "chmod 777 dataset_script.sh"
|
||||||
|
sh "./dataset_script.sh $CUTOFF"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
stage('Goodbye') {
|
stage('Goodbye') {
|
||||||
echo 'Goodbye!'
|
echo 'Goodbye!'
|
||||||
|
@ -5,8 +5,8 @@ TEST_SIZE=$(($CUTOFF * 1/5))
|
|||||||
TRAIN_START=$(($TEST_SIZE+1))
|
TRAIN_START=$(($TEST_SIZE+1))
|
||||||
echo $TEST_SIZE
|
echo $TEST_SIZE
|
||||||
echo $TRAIN_START
|
echo $TRAIN_START
|
||||||
|
echo $KAGGLE_USERNAME
|
||||||
! kaggle datasets download kamilpytlak/personal-key-indicators-of-heart-disease
|
kaggle datasets download -d kamilpytlak/personal-key-indicators-of-heart-disease --force
|
||||||
! unzip personal-key-indicators-of-heart-disease -d ./
|
! unzip personal-key-indicators-of-heart-disease -d ./
|
||||||
! wc -l heart_2020_cleaned.csv
|
! wc -l heart_2020_cleaned.csv
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user