Re: Retrieving the number of instances in an .erb template

Dmitriy Kalinin

Currently there is no way to do that unless you specify it as a property
and manually update it. This will be possible once we implement links:

On Mon, May 4, 2015 at 8:39 PM, Cyrille Le Clerc <cleclerc(a)>

Dear all,

I work on a boshrelease that can deploy 1..* Jenkins master and 1..*
Jenkins slaves. To dispatch the slaves between the master, I want to
implement a rule based on a modulus using the instance index and the total
number of instances.

I know how to retrieve the index of the instance in a .erb template with
<%= index %> (1)

How can I retrieve the total number of instances of a job?

Thanks for your help,



Cyrille Le Clerc
email & gtalk : cleclerc(a) / mob: +33- / skype:
CloudBees, Inc


cf-bosh mailing list

Join to automatically receive all group messages.