Update files

This commit is contained in:
Agata 2022-03-26 18:45:23 +01:00
parent cd2b66a42b
commit 4bd59f55ac
2 changed files with 8 additions and 7 deletions

6
Jenkinsfile vendored
View File

@ -1,6 +1,5 @@
pipeline {
agent any
/*
parameters {
string(
defaultValue: '',
@ -14,7 +13,6 @@ pipeline {
name: 'KAGGLE_KEY'
)
}
*/
stages {
stage('Check out from version control') {
steps {
@ -24,8 +22,10 @@ pipeline {
stage('Shell Script') {
steps {
sh 'chmod u+x ./download_data.sh'
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}","KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh './download_data.sh'
archiveArtifacts 'iris_data.txt'
}
archiveArtifacts 'travel_insurance_data.txt'
}
}
}

View File

@ -1,2 +1,3 @@
wget -c https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data
head -n 25 iris.data >> iris_data.txt
kaggle datasets download -d tejashvi14/travel-insurance-prediction-data
unzip -o travel-insurance-prediction-data.zip
head -n 15 TravelInsurancePrediction.csv >> travel_insurance_data.txt