summaryrefslogtreecommitdiff
path: root/jobs/turris.run
blob: c321ae8a83b5ba3d83b13058201dcf6d96d27981 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
# vim: ft=sh
set -eu
cd "$(dirname "$(readlink -f "$0")")"

pattern="turris-*.run"
if [ -n "${BOARD+x}" ]; then
	if [ -n "${BRANCH+x}" ]; then
		pattern="turris-$BRANCH-$BOARD.run"
	else
		pattern="turris-*-$BOARD.run"
	fi
else
	if [ -n "${BRANCH+x}" ]; then
		pattern="turris-${BRANCH}-*.run"
	fi
fi

for job in $pattern; do
	job="${job%\.run}"
	echo "Queueing: $job"
	laminarc queue "$job"
done