juju-solutions / layer-cwr

Layer for building the Juju Jenkins CI env
Other
2 stars 5 forks source link

cwr releases bundles even if they fail #123

Open kwmonroe opened 7 years ago

kwmonroe commented 7 years ago
CWR reported failure
+ echo 'CWR reported failure'
+ [[ -n '' ]]
+ exit 1
+ echo 'CWR reported failure'
+ [[ -n '' ]]
+ exit 1
CWR reported failure
Releasing bundle
Running charm push /tmp/tmpoytya1_4/bundle/./bigtop-deploy/juju/hadoop-processing cs:~bigdata-charmers/hadoop-processing
url: cs:~bigdata-charmers/bundle/hadoop-processing-54
channel: unpublished
Running charm show cs:~bigdata-charmers/hadoop-processing -c unpublished id
id:
  Id: cs:~bigdata-charmers/bundle/hadoop-processing-54
  Name: hadoop-processing
  Revision: 54
  Series: bundle
  User: bigdata-charmers
Running charm release cs:~bigdata-charmers/bundle/hadoop-processing-54 --channel edge
url: cs:~bigdata-charmers/bundle/hadoop-processing-54
channel: edge
Running charm grant cs:~bigdata-charmers/bundle/hadoop-processing-54 everyone
Recording test results

CWR doesn't check the bundle.test() output before releasing:

https://github.com/juju-solutions/layer-cwr/blob/master/scripts/bundlebuilder.py#L505