Change dataset

This commit is contained in:
Agata 2022-03-26 18:26:54 +01:00
parent 945905fb5a
commit cd2b66a42b
2 changed files with 6 additions and 12 deletions

11
Jenkinsfile vendored
View File

@ -1,5 +1,6 @@
pipeline {
agent any
/*
parameters {
string(
defaultValue: '',
@ -13,12 +14,8 @@ pipeline {
name: 'KAGGLE_KEY'
)
}
*/
stages {
stage('Install Kaggle') {
steps {
sh 'pip install --user kaggle'
}
}
stage('Check out from version control') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444421', url: 'https://git.wmi.amu.edu.pl/s444421/ium_444421.git']]])
@ -27,10 +24,8 @@ 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 'travel_insurance_data.txt'
archiveArtifacts 'iris_data.txt'
}
}
}

View File

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