add bash script
This commit is contained in:
parent
28dc433281
commit
e1901d779b
29
Jenkinsfile
vendored
29
Jenkinsfile
vendored
@ -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
10
bash.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user