<div dir="ltr">Hello, <div><br></div><div>Last Friday we had Antoine joining us for the pair programming, as we needed some help in creating jenkins job for the language screenshots. </div><div><br></div><div>* As initially Zeljko and me had used the existing template, but with that we were only able to run only 1 language in single job. Hence Antoine suggested us to make a new template. </div>
<div><br></div><div>* We used Matrix project plugin[1], where we can run multiple jobs with few environment variables(it can be anything in general, if I am not wrong) getting changed every job. </div><div><br></div><div>
* We had to add project-type as matrix in job template and axis where we specified all language code, for which we need to run these tests. [2]</div><div><br></div><div>* Then we modified the macro[3] by adding <span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;white-space:pre;background-color:rgb(255,255,255)">CUCUMBER_EXTRA_PARAMETERS which stores "--tags @language-screenshot" if LANGUAGE_SCREENSHOT_CODE is set.</span></div>
<div><span style="color:rgb(0,0,0);font-family:monospace;font-size:12px;white-space:pre;background-color:rgb(255,255,255)"><br></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#000000" face="monospace"><span style="font-size:12px;white-space:pre">* We have run it in Wikimedia integration[4] and one of the awesome things I have noticed is it runs all(currently 3) of them parallel. I am interesting to see what happens when I run it for more languages.</span></font></span></div>
<div><span style="background-color:rgb(255,255,255)"><font color="#000000" face="monospace"><span style="font-size:12px;white-space:pre"><br></span></font></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#000000" face="monospace"><span style="font-size:12px;white-space:pre">Thank you Zeljko for pairing with me :) </span></font></span></div>
<div>-</div><div>[1]: <a href="https://wiki.jenkins-ci.org/display/JENKINS/Matrix+Project+Plugin">https://wiki.jenkins-ci.org/display/JENKINS/Matrix+Project+Plugin</a></div><div><br></div><div>[2]: <a href="https://gerrit.wikimedia.org/r/#/c/144135/9/job_template.yaml,cm">https://gerrit.wikimedia.org/r/#/c/144135/9/job_template.yaml,cm</a></div>
<div><br></div><div>[3]: <a href="https://gerrit.wikimedia.org/r/#/c/144135/9/macro.yaml,cm">https://gerrit.wikimedia.org/r/#/c/144135/9/macro.yaml,cm</a></div><div><br></div><div>[4]: <a href="https://integration.wikimedia.org/ci/view/BrowserTests/job/browsertests-VisualEditor-language-screenshot-linux-firefox-sauce/">https://integration.wikimedia.org/ci/view/BrowserTests/job/browsertests-VisualEditor-language-screenshot-linux-firefox-sauce/</a></div>
<div><br></div><div><br></div><div>Regards <br>-- <br>Vikas S Yaligar<br>(9481543789)<br>IT Department <br>NITK Surathkal<br>
</div><font face="yw-04b1231f2b49ebfc02591937fa6d6ece0e8f71c2-0581c6c5035f5da188022dfcaf38d4b4--o" style></font></div>