Final Commit for 1-7
Zostało do zrobienia "8. Statystki [5 pkt]"
This commit is contained in:
parent
75c3e2017d
commit
20ccc8b09d
18
Jenkinsfile
vendored
18
Jenkinsfile
vendored
@ -10,17 +10,20 @@ pipeline {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
|
// 4. Repozytorium [2 pkt]
|
||||||
stage('checkout: Check out from version control') {
|
stage('checkout: Check out from version control') {
|
||||||
steps {
|
steps {
|
||||||
git 'https://git.wmi.amu.edu.pl/s434788/ium_434788'
|
git 'https://git.wmi.amu.edu.pl/s434788/ium_434788'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 5. Zapisanie zbioru danych [4 pkt] + 7. Parametry zadania [1 pkt]
|
||||||
stage('sh: Shell Script') {
|
stage('sh: Shell Script') {
|
||||||
steps {
|
steps {
|
||||||
sh 'chmod +x test.sh'
|
sh 'chmod +x test.sh'
|
||||||
sh './test.sh ${CUTOFF}'
|
sh './test.sh ${CUTOFF}'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 5. Zapisanie zbioru danych [4 pkt] + 7. Parametry zadania [1 pkt]
|
||||||
stage('archiveArtifacts') {
|
stage('archiveArtifacts') {
|
||||||
steps {
|
steps {
|
||||||
archiveArtifacts 'test.csv'
|
archiveArtifacts 'test.csv'
|
||||||
@ -29,20 +32,5 @@ pipeline {
|
|||||||
archiveArtifacts 'zadanie7.csv'
|
archiveArtifacts 'zadanie7.csv'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Hello') {
|
|
||||||
steps {
|
|
||||||
//Wypisz wartość parametru w konsoli (To nie jest polecenie bash, tylko groovy!)
|
|
||||||
echo "INPUT_TEXT: ${CUTOFF}"
|
|
||||||
//Wywołaj w konsoli komendę "figlet", która generuje ASCI-art
|
|
||||||
sh "figlet \"${CUTOFF}\" | tee output.txt"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Goodbye!') {
|
|
||||||
steps {
|
|
||||||
echo 'Goodbye!'
|
|
||||||
//Zarchiwizuj wynik
|
|
||||||
archiveArtifacts 'output.txt'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
5
test.sh
5
test.sh
@ -1,5 +1,8 @@
|
|||||||
|
# 5. Zapisanie zbioru danych [4 pkt] (Pobranie pliku .csv)
|
||||||
curl -OL https://git.wmi.amu.edu.pl/s434788/ium_434788/raw/branch/master/winequality-red.csv
|
curl -OL https://git.wmi.amu.edu.pl/s434788/ium_434788/raw/branch/master/winequality-red.csv
|
||||||
|
|
||||||
|
|
||||||
|
# 5. Zapisanie zbioru danych [4 pkt] (Podzielenie pliku csv na test/dev/train)
|
||||||
head -n 1 winequality-red.csv > header.csv
|
head -n 1 winequality-red.csv > header.csv
|
||||||
tail -n +2 winequality-red.csv | shuf > data.shuffled
|
tail -n +2 winequality-red.csv | shuf > data.shuffled
|
||||||
|
|
||||||
@ -11,6 +14,6 @@ cat header.csv wine.data.test > test.csv
|
|||||||
cat header.csv wine.data.dev > dev.csv
|
cat header.csv wine.data.dev > dev.csv
|
||||||
cat header.csv wine.data.train > train.csv
|
cat header.csv wine.data.train > train.csv
|
||||||
|
|
||||||
|
# 7. Parametry zadania [1 pkt]
|
||||||
head -n $1 data.shuffled > zadanie7.data
|
head -n $1 data.shuffled > zadanie7.data
|
||||||
cat header.csv zadanie7.data > zadanie7.csv
|
cat header.csv zadanie7.data > zadanie7.csv
|
Loading…
Reference in New Issue
Block a user