fix data dir 1

This commit is contained in:
filnow 2024-03-26 21:24:10 +01:00
parent 35d5a3d73f
commit d6205031b9
2 changed files with 2 additions and 8 deletions

5
Jenkinsfile vendored
View File

@ -25,11 +25,6 @@ pipeline {
stage('Download Dataset') { stage('Download Dataset') {
steps { steps {
script { script {
def datasetDir = 'data'
if (!fileExists(datasetDir)) {
sh "mkdir ${datasetDir}"
}
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) { "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
sh "bash ./download.sh" sh "bash ./download.sh"

View File

@ -1,6 +1,5 @@
pip install kaggle pip install kaggle
kaggle datasets download -d fanconic/skin-cancer-malignant-vs-benign kaggle datasets download -d fanconic/skin-cancer-malignant-vs-benign
mv skin-cancer-malignant-vs-benign.zip ./data/ unzip skin-cancer-malignant-vs-benign.zip
unzip ./data/skin-cancer-malignant-vs-benign.zip rm skin-cancer-malignant-vs-benign.zip
rm ./data/skin-cancer-malignant-vs-benign.zip