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

View File

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