num lines script
This commit is contained in:
parent
92f6c8be62
commit
9d14f68033
1
.gitignore
vendored
1
.gitignore
vendored
@ -217,3 +217,4 @@ fabric.properties
|
|||||||
/Participants_Data_HPP/
|
/Participants_Data_HPP/
|
||||||
/Participants_Data_HPP/*
|
/Participants_Data_HPP/*
|
||||||
|
|
||||||
|
kaggle.json
|
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -30,7 +30,7 @@ pipeline {
|
|||||||
stage("Shell Scripts") {
|
stage("Shell Scripts") {
|
||||||
steps {
|
steps {
|
||||||
sh "chmod u+x ./startscript.sh"
|
sh "chmod u+x ./startscript.sh"
|
||||||
sh "KAGGLE_USERNAME=${KAGGLE_USERNAME} KAGGLE_KEY=${KAGGLE_KEY} CUTOFF=${CUTOFF} ./startscript.sh"
|
sh "KAGGLE_USERNAME=${KAGGLE_USERNAME} KAGGLE_KEY=${KAGGLE_KEY} CUTOFF=${CUTOFF} ./startscript1.sh"
|
||||||
archiveArtifacts 'data.txt'
|
archiveArtifacts 'data.txt'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
26
Jenkinsfile2
Normal file
26
Jenkinsfile2
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
parameters{
|
||||||
|
buildSelector(
|
||||||
|
defaultSelector: lastSuccessful(),
|
||||||
|
name: 's444417-create-dataset',
|
||||||
|
description: 'Which build to use for copying artifacts'
|
||||||
|
)
|
||||||
|
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage("Check out from version control") {
|
||||||
|
steps {
|
||||||
|
checkout scm
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage("Shell Script") {
|
||||||
|
steps {
|
||||||
|
sh "chmod u+x ./script2.sh"
|
||||||
|
sh " ./script2.sh"
|
||||||
|
archiveArtifacts 'num_lines.txt'
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
kaggle datasets download -d akash14/house-price-dataset
|
kaggle datasets download -d akash14/house-price-dataset
|
||||||
unzip -o house-price-dataset.zip
|
unzip -o house-price-dataset.zip
|
||||||
head -n $CUTOFF ./Participants_Data_HPP/Train.csv >> data.txt
|
head -n $CUTOFF ./Participants_Data_HPP/Train.csv >> data.txt
|
2
startscript2.sh
Normal file
2
startscript2.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
wc -l data.txt > num_lines.txt
|
Loading…
Reference in New Issue
Block a user