diff --git a/Jenkinsfile b/Jenkinsfile index b4b2efb..117eb23 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' + sh './download_data.sh' + archiveArtifacts 'iris_data.txt' } } } diff --git a/download_data.sh b/download_data.sh index df350d2..cb5b264 100644 --- a/download_data.sh +++ b/download_data.sh @@ -1,3 +1,2 @@ -kaggle datasets download -d uciml/iris -unzip -o iris.zip -head -n 15 Iris.csv >> data.txt \ No newline at end of file +wget -c https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data +head -n 25 iris.data >> iris_data.txt \ No newline at end of file