2

I have configured dynamic slaves on Jenkins to wait for 24 hours before being deleted (debugging purposes), and it works well, but we want the next build for the job to be launched in a different slave and it does not affect the previous one build. I'm using labels to match the slaves.

UPDATE

I found this option when configuring the slave: Maximum Total Uses is the option that I required.

enter image description here

But I would like to disable the slave to run further jobs, without destroying it.

Gerold Broser
  • 14,080
  • 5
  • 48
  • 107

2 Answers2

1

Why not set node max process to 1.

Gerold Broser
  • 14,080
  • 5
  • 48
  • 107
Pengbo Wu
  • 67
  • 8
0

You can change the slave label so that it does not match any jobs. You can also set the slave offline.

K. B.
  • 3,342
  • 3
  • 19
  • 32