Olaf Bohlen
2023-06-16 d14b81bc0242cfb49229571f38eb26fa7de43b2b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
 
# pre code
echo "hello class"
 
echo "*** checking for artifacts"
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