Olaf Bohlen
2022-01-19 ad757f91261f27f878c85d4dd4d599b0634938e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
 
# pre code
echo "hello class"
 
if [ -d /tmp/artifacts ]; then
  echo "*** found artifacts:"
  ls -l /tmp/artifacts
fi
 
/usr/libexec/s2i/assemble
rc=$?
 
if [ $rc -eq 0 ]; then
  echo "bye class"
else
  echo "sorry, build failed"
fi
 
exit $rc