How to have "choose slaves" choice when starting job?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

How to have "choose slaves" choice when starting job?

Gaetan-3
Hello

I have a test job and a panel of slave where this job can be run. I've a label so jenkins can choose it favorite slave alone.
Unfortunately, sometimes colleagues want to use one machine, so I want to avoid automatic execution on it. I usually "disconnect" the slave, but it ends up after a few minutes been back online for whatever reason.

What I'de like to have is a parameter like "choice", but being able to choose the slave I want to use. It would "evaluate" the "Restrict where this project can be run" argument and display a choice combobox where I can choose my favorite node. It is possible right now? Or do you have any other way?


Thanks
-----
Gaetan


Reply | Threaded
Open this post in threaded view
|

Re: How to have "choose slaves" choice when starting job?

Patrick Renaud
I would be interested in such a feature as well. This is something he
had in Build Forge that we miss now in Jenkins.

On Mar 9, 10:50 am, Gaetan <[hidden email]> wrote:

> Hello
>
> I have a test job and a panel of slave where this job can be run. I've a
> label so jenkins can choose it favorite slave alone.
> Unfortunately, sometimes colleagues want to use one machine, so I want to
> avoid automatic execution on it. I usually "disconnect" the slave, but it
> ends up after a few minutes been back online for whatever reason.
>
> What I'de like to have is a parameter like "choice", but being able to
> choose the slave I want to use. It would "evaluate" the "Restrict where this
> project can be run" argument and display a choice combobox where I can
> choose my favorite node. It is possible right now? Or do you have any other
> way?
>
> Thanks
> -----
> Gaetan
Reply | Threaded
Open this post in threaded view
|

Re: How to have "choose slaves" choice when starting job?

Les Mikesell
In reply to this post by Gaetan-3
On 3/9/2011 9:50 AM, Gaetan wrote:

> Hello
>
> I have a test job and a panel of slave where this job can be run. I've a
> label so jenkins can choose it favorite slave alone.
> Unfortunately, sometimes colleagues want to use one machine, so I want
> to avoid automatic execution on it. I usually "disconnect" the slave,
> but it ends up after a few minutes been back online for whatever reason.
>
> What I'de like to have is a parameter like "choice", but being able to
> choose the slave I want to use. It would "evaluate" the "Restrict where
> this project can be run" argument and display a choice combobox where I
> can choose my favorite node. It is possible right now? Or do you have
> any other way?

Why not just remove the label(s)used for automatic node selection from
the node in question for the time you don't want it to be used?

--
   Les Mikesell
    [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: How to have "choose slaves" choice when starting job?

Gaetan-3
It would require to modify the configuration (either node or the job itself) each time, which lead to permission complexity.

The other way around is to permanently enable/disable the nodes, but they are always back online automatically while I want to disable it permanently :(
-----
Gaetan




2011/3/9 Les Mikesell <[hidden email]>
On 3/9/2011 9:50 AM, Gaetan wrote:
Hello

I have a test job and a panel of slave where this job can be run. I've a
label so jenkins can choose it favorite slave alone.
Unfortunately, sometimes colleagues want to use one machine, so I want
to avoid automatic execution on it. I usually "disconnect" the slave,
but it ends up after a few minutes been back online for whatever reason.

What I'de like to have is a parameter like "choice", but being able to
choose the slave I want to use. It would "evaluate" the "Restrict where
this project can be run" argument and display a choice combobox where I
can choose my favorite node. It is possible right now? Or do you have
any other way?

Why not just remove the label(s)used for automatic node selection from the node in question for the time you don't want it to be used?

--
 Les Mikesell
  [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: How to have "choose slaves" choice when starting job?

manandbytes
On 09.03.11 22:11, Gaetan wrote:

> The other way around is to permanently enable/disable the nodes, but
> they are always back online automatically while I want to disable it
> permanently :(

Issue "Persist a user-requested offline status for a slave across
restarts" http://issues.jenkins-ci.org/browse/JENKINS-8196 fixed in 1.397.

http://wiki.jenkins-ci.org/display/JENKINS/Keep+slave+offline comes to
the rescue if you're still using pre-1.397.

--
Mykola
Reply | Threaded
Open this post in threaded view
|

Re: How to have "choose slaves" choice when starting job?

Gaetan-3
I'm using latest jenkins (1.400) and it is not during "restart" this happens, but sometimes. Maybe I have a job "awaking" this node, but it ends up being back online after a while without intervention :(

-----
Gaetan




2011/3/10 Mykola Nikishov <[hidden email]>
On 09.03.11 22:11, Gaetan wrote:

> The other way around is to permanently enable/disable the nodes, but
> they are always back online automatically while I want to disable it
> permanently :(

Issue "Persist a user-requested offline status for a slave across
restarts" http://issues.jenkins-ci.org/browse/JENKINS-8196 fixed in 1.397.

http://wiki.jenkins-ci.org/display/JENKINS/Keep+slave+offline comes to
the rescue if you're still using pre-1.397.

--
Mykola