add bash script

This commit is contained in:
piotr6789 2021-03-28 21:11:46 +02:00
parent 28dc433281
commit e1901d779b
2 changed files with 31 additions and 8 deletions

29
Jenkinsfile vendored
View File

@ -1,10 +1,23 @@
pipeline {
agent any
stages {
stage('Stage 1') {
steps {
echo 'Hello world!'
}
}
}
agent any
stages {
stage('checkout: Check out from version control') {
steps {
git 'https://git.wmi.amu.edu.pl/s440058/ium_440058.git'
}
}
stage('sh: Shell Script') {
steps {
sh 'chmod +x script.sh'
sh './script.sh ${CUTOFF}'
}
}
stage('archiveArtifacts') {
steps {
archiveArtifacts 'scriptTest.csv'
archiveArtifacts 'scriptDev.csv'
archiveArtifacts 'scriptTrain.csv'
}
}
}
}

10
bash.sh Normal file
View File

@ -0,0 +1,10 @@
curl -OL https://https://git.wmi.amu.edu.pl/s440058/ium_440058/src/branch/master/courses.csv
head -n 1 courses.csv > header.csv
tail -n +2 courses.csv | shuf > courses.data.shuf
head -n 15208 courses.data.shuf > courses.data.test
head -n 15200 courses.data.shuf| tail -n 1022 > courses.data.dev
tail -n 45600 courses.data.shuf > courses.data.train
wc -l ./*.csv