This commit is contained in:
PawelDopierala 2024-03-27 02:47:12 +01:00
parent f9c73bcaa7
commit 2588d5b5ba
3 changed files with 8 additions and 26 deletions

14
Jenkinsfile vendored
View File

@ -29,25 +29,19 @@ pipeline {
) )
} }
} }
stage('Shell') { stage('Download data') {
steps { steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'chmod 777 ./data_processing.sh' sh 'chmod 777 ./data_processing.sh'
sh "./data_processing.sh ${params.CUTOFF}" sh "./data_processing.sh ${params.CUTOFF}"
} }
} }
}
stage('Artifacts') { stage('Artifacts') {
steps { steps {
archiveArtifacts artifacts: 'processed_data.txt' archiveArtifacts artifacts: 'processed_data.txt'
} }
} }
stage('Kaggle') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'kaggle datasets list'
}
}
}
} }
} }

View File

@ -1,2 +1,3 @@
#!/bin/bash #!/bin/bash
head -n $1 example_data.txt > processed_data.txt kaggle datasets download muhammadbinimran/housing-price-prediction-data --unzip
head -n $1 housing_price_dataset.csv > processed_data.txt

View File

@ -1,13 +0,0 @@
test1
test15
test134
test1453
test134543
test134
test1rth
test1test1test1tre
test1rthrt
test1hrt
test1hrtsda