commit | author | age | ||
43993f | 1 | #!/bin/bash |
OB | 2 | |
3 | # pre code | |
4 | echo "hello class" | |
5 | ||
5a7af4 | 6 | echo "*** checking for artifacts" |
ad757f | 7 | if [ -d /tmp/artifacts ]; then |
OB | 8 | echo "*** found artifacts:" |
9 | ls -l /tmp/artifacts | |
10 | fi | |
11 | ||
9ce154 | 12 | /usr/libexec/s2i/assemble |
43993f | 13 | rc=$? |
OB | 14 | |
9ce154 | 15 | if [ $rc -eq 0 ]; then |
43993f | 16 | echo "bye class" |
OB | 17 | else |
18 | echo "sorry, build failed" | |
19 | fi | |
20 | ||
ad757f | 21 | exit $rc |