| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- |
| Copyright 2015 The Bazel Authors. All rights reserved. |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <matrix-project plugin="{{ variables.JENKINS_PLUGIN_matrix_project }}"> |
| <actions/> |
| <description>Test the Tutorial project still build with Bazel at head.</description> |
| <keepDependencies>false</keepDependencies> |
| <properties> |
| <com.coravy.hudson.plugins.github.GithubProjectProperty plugin="{{ variables.JENKINS_PLUGIN_github }}"> |
| <projectUrl>https://github.com/bazelbuild/examples/</projectUrl> |
| </com.coravy.hudson.plugins.github.GithubProjectProperty> |
| <hudson.model.ParametersDefinitionProperty> |
| <parameterDefinitions> |
| <hudson.model.StringParameterDefinition> |
| <name>REF_SPEC</name> |
| <description>Git branch/tag to build for downstream project (to be passed from upstream project)</description> |
| <defaultValue>origin/master</defaultValue> |
| </hudson.model.StringParameterDefinition> |
| </parameterDefinitions> |
| </hudson.model.ParametersDefinitionProperty> |
| </properties> |
| <scm class="hudson.plugins.git.GitSCM" plugin="{{ variables.JENKINS_PLUGIN_git }}"> |
| <configVersion>2</configVersion> |
| <userRemoteConfigs> |
| <hudson.plugins.git.UserRemoteConfig> |
| <refspec>+refs/heads/*:refs/remotes/origin/*</refspec> |
| <url>https://github.com/bazelbuild/examples</url> |
| </hudson.plugins.git.UserRemoteConfig> |
| </userRemoteConfigs> |
| <branches> |
| <hudson.plugins.git.BranchSpec> |
| <name>*/master</name> |
| </hudson.plugins.git.BranchSpec> |
| </branches> |
| <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> |
| <submoduleCfg class="list"/> |
| <extensions> |
| <hudson.plugins.git.extensions.impl.CleanBeforeCheckout/> |
| <hudson.plugins.git.extensions.impl.AuthorInChangelog/> |
| </extensions> |
| </scm> |
| <quietPeriod>5</quietPeriod> |
| <canRoam>true</canRoam> |
| <disabled>false</disabled> |
| <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> |
| <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> |
| <triggers> |
| <com.cloudbees.jenkins.GitHubPushTrigger plugin="{{ variables.JENKINS_PLUGIN_github }}"> |
| <spec></spec> |
| </com.cloudbees.jenkins.GitHubPushTrigger> |
| </triggers> |
| <concurrentBuild>false</concurrentBuild> |
| <axes> |
| <hudson.matrix.LabelAxis> |
| <name>PLATFORM_NAME</name> |
| <values>{% for v in variables.PLATFORMS.split("\n") %}<string>{{ v }}</string>{% endfor %}</values> |
| </hudson.matrix.LabelAxis> |
| </axes> |
| <builders> |
| <hudson.plugins.copyartifact.CopyArtifact plugin="{{ variables.JENKINS_PLUGIN_copyartifact }}"> |
| <project>Bazel</project> |
| <filter>**/ci/*installer*.sh</filter> |
| <target>bazel-installer</target> |
| <excludes></excludes> |
| <selector class="hudson.plugins.copyartifact.TriggeredBuildSelector"> |
| <fallbackToLastSuccessful>true</fallbackToLastSuccessful> |
| <upstreamFilterStrategy>UseGlobalSetting</upstreamFilterStrategy> |
| </selector> |
| <doNotFingerprintArtifacts>false</doNotFingerprintArtifacts> |
| </hudson.plugins.copyartifact.CopyArtifact> |
| <hudson.tasks.Shell> |
| <command>#!/bin/bash |
| INSTALLER_PLATFORM=$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m) |
| export BAZEL_INSTALLER=$(find $PWD/bazel-installer -name *.sh | \ |
| fgrep "PLATFORM_NAME=${INSTALLER_PLATFORM}" | fgrep -v jdk7 | head -1) |
| |
| ./tutorial/ci/build.sh</command> |
| </hudson.tasks.Shell> |
| </builders> |
| <publishers> |
| <hudson.tasks.Mailer plugin="{{ variables.JENKINS_PLUGIN_mailer }}"> |
| <recipients>bazel-ci@googlegroups.com</recipients> |
| <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild> |
| <sendToIndividuals>false</sendToIndividuals> |
| </hudson.tasks.Mailer> |
| <hudson.plugins.parameterizedtrigger.BuildTrigger plugin="{{ variables.JENKINS_PLUGIN_parameterized_trigger }}"> |
| <configs> |
| <hudson.plugins.parameterizedtrigger.BuildTriggerConfig> |
| <configs> |
| <hudson.plugins.parameterizedtrigger.CurrentBuildParameters/> |
| </configs> |
| <projects>Bazel-Release-Trigger</projects> |
| <condition>SUCCESS</condition> |
| <triggerWithNoParameters>false</triggerWithNoParameters> |
| </hudson.plugins.parameterizedtrigger.BuildTriggerConfig> |
| </configs> |
| </hudson.plugins.parameterizedtrigger.BuildTrigger> |
| </publishers> |
| <buildWrappers/> |
| <executionStrategy class="hudson.matrix.DefaultMatrixExecutionStrategyImpl"> |
| <runSequentially>false</runSequentially> |
| </executionStrategy> |
| </matrix-project> |