Jenkins/Hudson CLI API to modify the node labels using Groovy

前端 未结 3 1555
死守一世寂寞
死守一世寂寞 2021-02-20 03:13

Does anyone know how to modify the Jenkins/Hudson node labels in a non-manually way? I mean, thorough an API like the CLI API that this tool offers (without restarting Jenkins/H

3条回答
  •  灰色年华
    2021-02-20 03:54

    I've not seen a way yet to change the slave label either.

    I've taken to editing the main config.xml file and issuing a reload from the CLI.

    This has it's own problems though - any jobs currently running are lost until the next jenkins restart - see https://issues.jenkins-ci.org/browse/JENKINS-3265

提交回复
热议问题