Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
210 views
in Technique[技术] by (71.8m points)

how can I set (add) a label to a jenkins node from itself (powershell windows 2017)

how can I set (add) a label to a jenkins node from itself (powershell windows 2017) ?

I have no access to jenkins admin mode from https GUI. (that should be the standard procedure to do so).

I have both : access to the node I need to use as remote powershell console (administrator) access to master jenkins ssh linux account (root)

here I would like to add another label to the client node from one of thoses CLI's.

Jenkins officials neither googling permit me to find a procedure to do so.

how can I do that ? (So I can build a script around that after to make it all).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

As an alternative method, I had to change it in its own xml file

as

<label>label addmynewlabel</label>

then restarted jenkinsclient (useless ?) & restart jenkins service on jenkins main server


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...