using the juju client from jenkins

2017-11-21 Thread James Beedy
I've a feeling that the majority of the CI/CD I've left in my trails that attaches a resource from jenkins via juju bash cli are probably not working. The latest CI/CD I've setup runs `juju attach` from jenkins, and I have to login to the jenkins shell and su to the jenkins user and login to be

Re: Handling uninstallation upon subordinate removal in reactive

2017-11-21 Thread Dmitrii Shcherbakov
Hi Junien, Using hooks in the reactive world is perfectly file - just use them carefully. Think of a distinction between the "Juju world" and the "charm world". Juju's unit agent is an integration point with your charm - the "charm world" starts when a unit agent runs a charm code and ends when

Handling uninstallation upon subordinate removal in reactive

2017-11-21 Thread Junien Fridrick
Hi, I'm developping a charm, and would like to know the best practive to do some uninstallation steps when a subordinate gets removed from a unit (these steps being : uninstall a snap) The only way I can think of is to use @hook('stop'), but as far as I remember, using hooks is not something one