Add files

This commit is contained in:
Agata 2022-03-26 19:29:43 +01:00
parent e447d211ab
commit dbe758c66f
3 changed files with 27 additions and 1 deletions

25
Jenkinsfile2 Normal file
View File

@ -0,0 +1,25 @@
pipeline {
agent any
parameters {
buildSelector(
defaultSelector: lastSuccessful(),
description: 'Which build to use for copying artifacts',
name: 'BUILD_SELECTOR'
)
}
stages {
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']]])
}
}
stage('Shell Script') {
steps {
copyArtifacts fingerprintArtifacts: true, projectName:'s444421-create-dataset', selector: buildParameter('BUILD_SELECTOR')
sh 'chmod u+x ./get_stats.sh'
sh './get_stats.sh'
archiveArtifacts 'stats.txt'
}
}
}
}

View File

@ -1,3 +1,3 @@
kaggle datasets download -d tejashvi14/travel-insurance-prediction-data
unzip -o travel-insurance-prediction-data.zip
head -n $CUTOFF TravelInsurancePrediction.csv >> travel_insurance_data.txt
head -n $CUTOFF TravelInsurancePrediction.csv > travel_insurance_data.txt

1
get_stats.sh Normal file
View File

@ -0,0 +1 @@
wc -l travel_insurance_data.txt > stats.txt