limit for jenkins
This commit is contained in:
parent
b122851eb7
commit
c5977908fc
26
Jenkinsfile
vendored
26
Jenkinsfile
vendored
@ -1,26 +1,8 @@
|
||||
node {
|
||||
stage('Preparation') {
|
||||
properties([
|
||||
parameters([
|
||||
string(
|
||||
defaultValue: 'Hello World!',
|
||||
description: 'Tekst do wyświetlenie',
|
||||
name: 'INPUT_TEXT',
|
||||
trim: false
|
||||
)
|
||||
])
|
||||
])
|
||||
}
|
||||
stage('Hello') {
|
||||
//Wypisz wartość parametru w konsoli (To nie jest polecenie bash, tylko groovy!)
|
||||
echo "INPUT_TEXT: ${INPUT_TEXT}"
|
||||
//Wywołaj w konsoli komendę "figlet", która generuje ASCI-art
|
||||
sh "figlet \"${INPUT_TEXT}\" | tee output.txt"
|
||||
}
|
||||
stage('Goodbye') {
|
||||
echo 'Goodbye!'
|
||||
//Zarchiwizuj wynik
|
||||
archiveArtifacts 'output.txt'
|
||||
stage('Build') {
|
||||
checkout([$class: 'GitSCM', branches: [[name: 'ztm']], extensions: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s452639/ium_452639']]])
|
||||
sh './prepare-ztm-data.sh'
|
||||
archiveArtifacts artifacts: 'stop_times.csv', followSymlinks: false
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,8 @@
|
||||
|
||||
set -xe -o pipefail
|
||||
|
||||
make normalize csv2tsv/csv2tsv
|
||||
# Disable to allow to work in bare jenkins
|
||||
# make normalize csv2tsv/csv2tsv
|
||||
|
||||
keep=(stops.txt trips.txt stop_times.txt)
|
||||
|
||||
@ -22,15 +23,21 @@ cd ..
|
||||
|
||||
for k in "${keep[@]}"; do
|
||||
csv="${k%.txt}.csv"
|
||||
tsv="${k%.txt}.tsv"
|
||||
if [ ! -f "$tsv" ]; then
|
||||
cat $(find data -name "$k") > "$csv"
|
||||
csv2tsv/csv2tsv <"$csv" >"$tsv"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ! -f "stop_times.normalized.tsv" ]; then
|
||||
./normalize <stop_times.tsv >stop_times.normalized.tsv
|
||||
./split_train_valid_test.py
|
||||
fi
|
||||
./stats.py
|
||||
# Disable to allow to work in bare jenkins
|
||||
# for k in "${keep[@]}"; do
|
||||
# csv="${k%.txt}.csv"
|
||||
# tsv="${k%.txt}.tsv"
|
||||
# if [ ! -f "$tsv" ]; then
|
||||
# cat $(find data -name "$k") > "$csv"
|
||||
# csv2tsv/csv2tsv <"$csv" >"$tsv"
|
||||
# fi
|
||||
# done
|
||||
#
|
||||
# if [ ! -f "stop_times.normalized.tsv" ]; then
|
||||
# ./normalize <stop_times.tsv >stop_times.normalized.tsv
|
||||
# ./split_train_valid_test.py
|
||||
# fi
|
||||
# ./stats.py
|
||||
|
Loading…
Reference in New Issue
Block a user