Add files
This commit is contained in:
parent
e447d211ab
commit
dbe758c66f
25
Jenkinsfile2
Normal file
25
Jenkinsfile2
Normal 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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -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
1
get_stats.sh
Normal file
@ -0,0 +1 @@
|
||||
wc -l travel_insurance_data.txt > stats.txt
|
Loading…
Reference in New Issue
Block a user