You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by ke...@apache.org on 2017/10/19 22:42:27 UTC
[1/2] beam git commit: Add standalone version of seed job
Repository: beam
Updated Branches:
refs/heads/master 07b6b0115 -> 41f16123b
Add standalone version of seed job
Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/58b33699
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/58b33699
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/58b33699
Branch: refs/heads/master
Commit: 58b33699ef8917ebed8d62d7ec42de6eb651639c
Parents: 1974b92
Author: Kenneth Knowles <ke...@apache.org>
Authored: Mon Oct 16 21:20:52 2017 -0700
Committer: Kenneth Knowles <ke...@apache.org>
Committed: Thu Oct 19 11:10:23 2017 -0700
----------------------------------------------------------------------
.test-infra/jenkins/job_seed_standalone.groovy | 114 ++++++++++++++++++++
1 file changed, 114 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/beam/blob/58b33699/.test-infra/jenkins/job_seed_standalone.groovy
----------------------------------------------------------------------
diff --git a/.test-infra/jenkins/job_seed_standalone.groovy b/.test-infra/jenkins/job_seed_standalone.groovy
new file mode 100644
index 0000000..badb3c3
--- /dev/null
+++ b/.test-infra/jenkins/job_seed_standalone.groovy
@@ -0,0 +1,114 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+// Defines the seed job, which creates or updates all other Jenkins projects.
+job('beam_SeedJob_Standalone') {
+ description('Automatically configures all Apache Beam Jenkins projects based' +
+ ' on Jenkins DSL groovy files checked into the code repository.')
+
+ properties {
+ githubProjectUrl('https://github.com/apache/beam/')
+ }
+
+ // Restrict to only run on Jenkins executors labeled 'beam'
+ label('beam')
+
+ logRotator {
+ daysToKeep(14)
+ }
+
+ scm {
+ git {
+ remote {
+ github('apache/beam')
+
+ // ${ghprBuildId} is not interpolated by groovy, but passed through to Jenkins where it
+ // refers to the environment variable
+ refspec(['+refs/head/*:refs/remotes/origin/*',
+ '+refs/pull/${ghprPullId}/*:refs/remotes/origin/pr/${ghprPullId}/*']
+ .join(' '))
+
+ // The variable ${sha1} is not interpolated by groovy, but a parameter of the Jenkins job
+ branch('${sha1}')
+
+ extensions {
+ cleanAfterCheckout()
+ }
+ }
+ }
+ }
+
+ parameters {
+ // Setup for running this job from a pull request
+ stringParam(
+ 'sha1',
+ 'master',
+ 'Commit id or refname (eg: origin/pr/4001/head) you want to build against.')
+ }
+
+ wrappers {
+ timeout {
+ absolute(5)
+ abortBuild()
+ }
+ }
+
+ triggers {
+ // Run once per day
+ cron('0 */5 * * *')
+
+ githubPullRequest {
+ admins(['asfbot'])
+ useGitHubHooks()
+ orgWhitelist(['apache'])
+ allowMembersOfWhitelistedOrgsAsAdmin()
+ permitAll()
+
+ // Also run when manually kicked on a pull request
+ triggerPhrase('Run Standalone Seed Job')
+ onlyTriggerPhrase()
+
+ extensions {
+ commitStatus {
+ context("Jenkins: Standalone Seed Job")
+ }
+
+ buildStatus {
+ completedStatus('SUCCESS', '--none--')
+ completedStatus('FAILURE', '--none--')
+ completedStatus('ERROR', '--none--')
+ }
+ }
+ }
+ }
+
+ // If anything goes wrong, mail the main dev list, because it is a big deal
+ publishers {
+ mailer('dev@beam.apache.org', false, true)
+ }
+
+ steps {
+ dsl {
+ // A list or a glob of other groovy files to process.
+ external('.test-infra/jenkins/job_*.groovy')
+
+ // If a job is removed from the script, disable it (rather than deleting).
+ removeAction('DISABLE')
+ }
+ }
+}
[2/2] beam git commit: This closes #4004: Add standalone version of
seed job
Posted by ke...@apache.org.
This closes #4004: Add standalone version of seed job
Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/41f16123
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/41f16123
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/41f16123
Branch: refs/heads/master
Commit: 41f16123b7a0f2b3b317ce9bbb87c360242332b2
Parents: 07b6b01 58b3369
Author: Kenneth Knowles <ke...@apache.org>
Authored: Thu Oct 19 15:42:07 2017 -0700
Committer: Kenneth Knowles <ke...@apache.org>
Committed: Thu Oct 19 15:42:07 2017 -0700
----------------------------------------------------------------------
.test-infra/jenkins/job_seed_standalone.groovy | 114 ++++++++++++++++++++
1 file changed, 114 insertions(+)
----------------------------------------------------------------------