diff --git a/Jenkinsfile b/Jenkinsfile index 0ba17b5..2a7d22b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,13 +23,11 @@ pipeline { stage('Download dataset') { steps { checkout scm - dir ('./createDataset') { - sh 'ls -l' - withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", - "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { - sh 'kaggle datasets download -d elakiricoder/gender-classification-dataset' - sh 'unzip -o gender-classification-dataset.zip' - } + sh 'ls -l' + withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", + "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { + sh 'kaggle datasets download -d elakiricoder/gender-classification-dataset' + sh 'unzip -o gender-classification-dataset.zip' } } } @@ -38,14 +36,12 @@ pipeline { script { def dockerImage = docker.build("docker-image", "./") dockerImage.inside { - sh 'ls -l' - dir ('./createDataset') { + sh 'ls -l' sh 'ls -l' sh 'python3 createDataset.py' archiveArtifacts 'gender_classification_train.csv' archiveArtifacts 'gender_classification_test.csv' archiveArtifacts 'gender_classification_val.csv' - } sh 'ls -l' } }