Zfilipin has uploaded a new change for review. https://gerrit.wikimedia.org/r/81218
Change subject: Created "extension" Jenkins job template ...................................................................... Created "extension" Jenkins job template The template is used to run CirrusSearch[1], MobileFrontend[2] and UniversalLanguageSelector[3] jobs. Change-Id: Idb7c33c7d99318feb934c9645a2edf660a0dc9cc 1: https://wmf.ci.cloudbees.com/view/r-cs/ 2: https://wmf.ci.cloudbees.com/view/r-mf/ 3: https://wmf.ci.cloudbees.com/view/r-uls/ --- A docs/template-extension.md M docs/template.md A docs/view.md 3 files changed, 317 insertions(+), 58 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/qa/browsertests refs/changes/18/81218/1 diff --git a/docs/template-extension.md b/docs/template-extension.md new file mode 100644 index 0000000..6eca26e --- /dev/null +++ b/docs/template-extension.md @@ -0,0 +1,245 @@ +# Template + +## Setup + +- Jenkins > Templates > New Template > (name) > Job Template > OK > Save +- Display Name: (name) +- Description: (description) +- Instantiable?: check +- Attribute + +## Name + +- ID: name +- Display Name: Name +- Type: Text-field + +## Browser Label + +- ID: BROWSER_LABEL +- Display Name: Browser Label +- Type: Select a string among many +- UI Mode: Dropdown list (no inline help, but more compact UI) +- Options + - Display Name: (name) + - Value: (name) + - chrome + - firefox + - internet_explorer_6 + - internet_explorer_7 + - internet_explorer_8 + - internet_explorer_9 + - internet_explorer_10 + +## bundle exec + +- ID: BUNDLE_EXEC +- Display Name: bundle exec +- Type: Text-field + +## Recipients + +- ID: RECIPIENTS +- Display Name: Recipients +- Type: Text-field + +## Repository URL + +- ID: REPOSITORY_URL +- Display Name: Repository URL +- Type: Select a string among many +- UI Mode: Dropdown list (no inline help, but more compact UI) +- Options + + - Display Name: CirrusSearch@gerrit + - Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/CirrusSearch + + - Display Name: MobileFrontend@cloudbees + - Value: git://git.cloudbees.com/wmf/MobileFrontend.git + + - Display Name: MobileFrontend@gerrit + - Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/MobileFrontend + + - Display Name: UniversalLanguageSelector@gerrit + - Value: https://gerrit.wikimedia.org/r/mediawiki/extensions/UniversalLanguageSelector + +## Branch + +- ID: BRANCH +- Display Name: Branch +- Type: Select a string among many +- UI Mode: Dropdown list (no inline help, but more compact UI) +- Options + - Display Name: (name) + - Value: (name) + + - name: + - debug + - master + +## MediaWiki URL + +- ID: MEDIAWIKI_URL +- Display Name: MediaWiki URL +- Type: Select a string among many +- UI Mode: Dropdown list (no inline help, but more compact UI) +- Options + - Display Name: (name) + - Value: (name) + + - name: + - commons.wikimedia.beta.wmflabs.org + - en.m.wikipedia.beta.wmflabs.org + - en.m.wikipedia.org + - en.wikipedia.beta.wmflabs.org + - en.wikipedia.org + - sandbox.translatewiki.net + - test2.wikipedia.org + +## Folder + +- ID: FOLDER +- Display Name: Folder +- Type: Select a string among many +- UI Mode: Dropdown list (no inline help, but more compact UI) +- Options + - Display Name: (name) + - Value: (name) + + - name: + - tests/acceptance/ + - tests/browser/ + +## Jelly-based transformation + +- Property + - Transformer: Jelly-based transformation + - Script, from (site)/job/(job)/config.xml + +-- + + <?xml version='1.0' encoding='UTF-8'?> + <project> + <actions/> + <description></description> + <logRotator> + <daysToKeep>60</daysToKeep> + <numToKeep>-1</numToKeep> + <artifactDaysToKeep>-1</artifactDaysToKeep> + <artifactNumToKeep>20</artifactNumToKeep> + </logRotator> + <keepDependencies>false</keepDependencies> + <properties> + <nectar.plugins.rbac.groups.JobProxyGroupContainer> + <groups/> + </nectar.plugins.rbac.groups.JobProxyGroupContainer> + <com.cloudbees.jenkins.plugins.PublicKey/> + <com.cloudbees.plugins.deployer.DeployNowJobProperty> + <oneClickDeploy>false</oneClickDeploy> + <configuration> + <user>(jenkins)</user> + <account>wmf</account> + <deployables/> + </configuration> + </com.cloudbees.plugins.deployer.DeployNowJobProperty> + </properties> + <scm class="hudson.plugins.git.GitSCM"> + <configVersion>2</configVersion> + <userRemoteConfigs> + <hudson.plugins.git.UserRemoteConfig> + <name></name> + <refspec></refspec> + <url>${REPOSITORY_URL}</url> + </hudson.plugins.git.UserRemoteConfig> + </userRemoteConfigs> + <branches> + <hudson.plugins.git.BranchSpec> + <name>${BRANCH}</name> + </hudson.plugins.git.BranchSpec> + </branches> + <disableSubmodules>false</disableSubmodules> + <recursiveSubmodules>false</recursiveSubmodules> + <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> + <authorOrCommitter>false</authorOrCommitter> + <clean>false</clean> + <wipeOutWorkspace>false</wipeOutWorkspace> + <pruneBranches>false</pruneBranches> + <remotePoll>false</remotePoll> + <ignoreNotifyCommit>false</ignoreNotifyCommit> + <useShallowClone>false</useShallowClone> + <buildChooser class="hudson.plugins.git.util.DefaultBuildChooser"/> + <gitTool>Default</gitTool> + <submoduleCfg class="list"/> + <relativeTargetDir></relativeTargetDir> + <reference></reference> + <excludedRegions></excludedRegions> + <excludedUsers></excludedUsers> + <gitConfigName></gitConfigName> + <gitConfigEmail></gitConfigEmail> + <skipTag>false</skipTag> + <includedRegions></includedRegions> + <scmName></scmName> + </scm> + <canRoam>true</canRoam> + <disabled>false</disabled> + <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> + <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> + <triggers class="vector"> + <hudson.triggers.TimerTrigger> + <spec>0 3,18 * * *</spec> + </hudson.triggers.TimerTrigger> + </triggers> + <concurrentBuild>false</concurrentBuild> + <builders> + <hudson.tasks.Shell> + <command> + export BROWSER_LABEL=${BROWSER_LABEL} + export MEDIAWIKI_URL=https://${MEDIAWIKI_URL}/wiki/ + export ENVIRONMENT=cloudbees + + curl -s -o use-ruby https://repository-cloudbees.forge.cloudbees.com/distributions/ci-addons/ruby/use-ruby + RUBY_VERSION=2.0.0-p247 \ + source ./use-ruby + + gem install bundler --no-ri --no-rdoc + cd ${FOLDER} + bundle install + bundle exec ${BUNDLE_EXEC} + </command> + </hudson.tasks.Shell> + </builders> + <publishers> + <hudson.tasks.junit.JUnitResultArchiver> + <testResults>${FOLDER}/reports/junit/*.xml</testResults> + <keepLongStdio>false</keepLongStdio> + <testDataPublishers/> + </hudson.tasks.junit.JUnitResultArchiver> + <hudson.tasks.Mailer> + <recipients>${RECIPIENTS}</recipients> + <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild> + <sendToIndividuals>false</sendToIndividuals> + </hudson.tasks.Mailer> + <hudson.plugins.ircbot.IrcPublisher plugin="ircbot@2.21"> + <targets class="java.util.Collections$EmptyList"/> + <strategy>STATECHANGE_ONLY</strategy> + <notifyOnBuildStart>false</notifyOnBuildStart> + <notifySuspects>false</notifySuspects> + <notifyCulprits>false</notifyCulprits> + <notifyFixers>false</notifyFixers> + <notifyUpstreamCommitters>false</notifyUpstreamCommitters> + <buildToChatNotifier class="hudson.plugins.im.build_notify.SummaryOnlyBuildToChatNotifier" plugin="instant-messaging@1.25"/> + <matrixMultiplier>ONLY_CONFIGURATIONS</matrixMultiplier> + <channels/> + </hudson.plugins.ircbot.IrcPublisher> + </publishers> + <buildWrappers/> + <executionStrategy class="hudson.matrix.DefaultMatrixExecutionStrategyImpl"> + <runSequentially>false</runSequentially> + </executionStrategy> + </project> + +-- + +## Save + +- Save diff --git a/docs/template.md b/docs/template.md index 4c11522..757dd3a 100644 --- a/docs/template.md +++ b/docs/template.md @@ -11,82 +11,84 @@ ## Name - ID: name - - Display Name: Name - - Type: Text-field +- Display Name: Name +- Type: Text-field ## Browser Label - ID: BROWSER_LABEL - - Display Name: Browser Label - - Type: Select a string among many - - UI Mode: Dropdown list (no inline help, but more compact UI) - - Options - - Display Name: (name) - - Value: (name) - - chrome - - firefox - - internet_explorer_6 - - internet_explorer_7 - - internet_explorer_8 - - internet_explorer_9 - - internet_explorer_10 +- Display Name: Browser Label +- Type: Select a string among many +- UI Mode: Dropdown list (no inline help, but more compact UI) +- Options + - Display Name: (name) + - Value: (name) + - chrome + - firefox + - internet_explorer_6 + - internet_explorer_7 + - internet_explorer_8 + - internet_explorer_9 + - internet_explorer_10 ## bundle exec - - ID: BUNDLE_EXEC - - Display Name: bundle exec - - Type: Text-field +- ID: BUNDLE_EXEC +- Display Name: bundle exec +- Type: Text-field ## Recipients - ID: RECIPIENTS - - Display Name: Recipients - - Type: Text-field +- Display Name: Recipients +- Type: Text-field ## Repository URL - ID: REPOSITORY_URL - - Display Name: Repository URL - - Type: Select a string among many - - UI Mode: Dropdown list (no inline help, but more compact UI) - - Options +- Display Name: Repository URL +- Type: Select a string among many +- UI Mode: Dropdown list (no inline help, but more compact UI) +- Options - - Display Name: browsertests@gerrit - - Value: ssh://zfili...@gerrit.wikimedia.org:29418/qa/browsertests.git + - Display Name: browsertests@cloudbees + - Value: git://git.cloudbees.com/wmf/browsertests.git - - Display Name: browsertests@cloudbees - - Value: git://git.cloudbees.com/wmf/browsertests.git + - Display Name: browsertests@gerrit + - Value: https://gerrit.wikimedia.org/r/qa/browsertests ## Branch - ID: BRANCH - - Display Name: Branch - - Type: Select a string among many - - UI Mode: Dropdown list (no inline help, but more compact UI) - - Options - - Display Name: (name) - - Value: (name) +- Display Name: Branch +- Type: Select a string among many +- UI Mode: Dropdown list (no inline help, but more compact UI) +- Options + - Display Name: (name) + - Value: (name) - - name: - - master - - debug + - name: + - debug + - master ## MediaWiki URL - ID: MEDIAWIKI_URL - - Display Name: MediaWiki URL - - Type: Select a string among many - - UI Mode: Dropdown list (no inline help, but more compact UI) - - Options - - Display Name: (name) - - Value: (name) +- Display Name: MediaWiki URL +- Type: Select a string among many +- UI Mode: Dropdown list (no inline help, but more compact UI) +- Options + - Display Name: (name) + - Value: (name) - - name: - - en.wikipedia.beta.wmflabs.org - - test2.wikipedia.org - - commons.wikimedia.beta.wmflabs.org - - sandbox.translatewiki.net - - en.wikipedia.org + - name: + - commons.wikimedia.beta.wmflabs.org + - en.m.wikipedia.beta.wmflabs.org + - en.m.wikipedia.org + - en.wikipedia.beta.wmflabs.org + - en.wikipedia.org + - sandbox.translatewiki.net + - test2.wikipedia.org ## Jelly-based transformation @@ -171,17 +173,18 @@ <builders> <hudson.tasks.Shell> <command> - export BROWSER_LABEL=${BROWSER_LABEL} - export MEDIAWIKI_URL=https://${MEDIAWIKI_URL}/wiki/ - export ENVIRONMENT=cloudbees + export BROWSER_LABEL=${BROWSER_LABEL} + export MEDIAWIKI_URL=https://${MEDIAWIKI_URL}/wiki/ + export ENVIRONMENT=cloudbees - curl -s -o use-ruby https://repository-cloudbees.forge.cloudbees.com/distributions/ci-addons/ruby/use-ruby - RUBY_VERSION=2.0.0-p247 \ - source ./use-ruby + curl -s -o use-ruby https://repository-cloudbees.forge.cloudbees.com/distributions/ci-addons/ruby/use-ruby + RUBY_VERSION=2.0.0-p247 \ + source ./use-ruby - gem install bundler --no-ri --no-rdoc - bundle install - bundle exec ${BUNDLE_EXEC}</command> + gem install bundler --no-ri --no-rdoc + bundle install + bundle exec ${BUNDLE_EXEC} + </command> </hudson.tasks.Shell> </builders> <publishers> diff --git a/docs/view.md b/docs/view.md new file mode 100644 index 0000000..d56ec28 --- /dev/null +++ b/docs/view.md @@ -0,0 +1,11 @@ +# Create new view + +- https://wmf.ci.cloudbees.com/newView + - View name: (name) + - List View + - OK + +- https://wmf.ci.cloudbees.com/view/r-uls/configure + - Use a regular expression to include jobs into the view: .*STRING.* + - replace STRING with a string + - OK -- To view, visit https://gerrit.wikimedia.org/r/81218 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Idb7c33c7d99318feb934c9645a2edf660a0dc9cc Gerrit-PatchSet: 1 Gerrit-Project: qa/browsertests Gerrit-Branch: master Gerrit-Owner: Zfilipin <zfili...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits