Page MenuHomePhabricator

Jenkins: label slaves with their ubuntu version
Closed, ResolvedPublic

Description

To prevent jobs from roaming between different Ubuntu versions (i.e. Precise / Trusty) we need different labels applied and all Jenkins jobs to be updated.

We can use the label names:

ubuntu-precise
ubuntu-trusty

Then ensure all jobs are tied to ubuntu-precise then selectively switch them to ubuntu-trusty when they are ready.


Version: wmf-deployment
Severity: normal

Details

Reference
bz68340

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:36 AM
bzimport set Reference to bz68340.
hashar created this task.Jul 21 2014, 8:56 PM

I have added the label UbuntuPrecise on:

gallium
lanthanum
integration-slave1001.eqiad.wmflabs
integration-slave1002.eqiad.wmflabs
integration-slave1003.eqiad.wmflabs

Have yet to update Jenkins jobs though.

https://integration.wikimedia.org/ci/label/UbuntuPrecise/

lanthanum
gallium
integration-slave1001
integration-slave1002
integration-slave1003

https://integration.wikimedia.org/ci/label/UbuntuTrusty/

integration-slave1004-trusty

Now lets update all Jenkins jobs...

Change 150785 had a related patch set uploaded by Hashar:
Tie all jobs to UbuntuPrecise

https://gerrit.wikimedia.org/r/150785

Deployed.

I did it manually though by using shell commands such as:

sed -ibak -e 's%<assignedNode>hasSlaveScripts</assignedNode>%<assignedNode>hasSlaveScripts \&amp;\&amp; UbuntuPrecise</assignedNode>%' */config.xml

Change 150785 merged by jenkins-bot:
Tie all jobs to UbuntuPrecise

https://gerrit.wikimedia.org/r/150785

Change 150804 had a related patch set uploaded by Hashar:
Tie all jobs to UbuntuPrecise

https://gerrit.wikimedia.org/r/150804

Change 150804 merged by jenkins-bot:
Tie all jobs to UbuntuPrecise

https://gerrit.wikimedia.org/r/150804

Change 150807 had a related patch set uploaded by Hashar:
Tie language screenshot to UbuntuPrecise

https://gerrit.wikimedia.org/r/150807

Change 150807 merged by jenkins-bot:
Tie language screenshot to UbuntuPrecise

https://gerrit.wikimedia.org/r/150807

Should be fine now :)