Change dataset
This commit is contained in:
parent
945905fb5a
commit
cd2b66a42b
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user