Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a question about the jenkins charm:

After creating a new instance with a jenkins charm, how can I run a script with commands to install some programs needed in machine created?

share|improve this question
one question for one post please :) – Raja Feb 5 '13 at 15:15
Ok, removed! thanks – tiagoortiz Feb 5 '13 at 15:23

If you need quick access to the machine you can:

juju ssh jenkins/0

Assuming 0 is your machine number (you can find out specifically by running juju status).

If you're wanting to do this on every machine you spawn, you might want to consider downloading the charm and modifying it to meet your exact deployment needs. This is especially useful if it's things that are useful to you or your organization. You can do this by branching the code:

bzr branch lp:charms/jenkins

and then deploying from that instead of from the charm store.

If it's something that you feel is useful for the Jenkins-using community in general then I encourage you to consider contributing to the charm.

share|improve this answer
Have a way of doing it generic and non-manual? We do not want to directly modify a charm at this time. – tiagoortiz Feb 5 '13 at 15:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.