Programmatically Create Beam Jenkins View. Signed-off-by: Jason Kuster <jasonkus...@google.com>
Project: http://git-wip-us.apache.org/repos/asf/beam/repo Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/8b60fcb6 Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/8b60fcb6 Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/8b60fcb6 Branch: refs/heads/master Commit: 8b60fcb6ddaa843e9d30f5abe7b29abc9f73f3ad Parents: 95a2ead Author: Jason Kuster <jasonkus...@google.com> Authored: Thu Jun 15 16:14:16 2017 -0700 Committer: Thomas Groh <tg...@google.com> Committed: Mon Jul 31 17:44:52 2017 -0700 ---------------------------------------------------------------------- .../jenkins/job_beam_ListView_Create.groovy | 42 ++++++++++++++++++++ 1 file changed, 42 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/beam/blob/8b60fcb6/.test-infra/jenkins/job_beam_ListView_Create.groovy ---------------------------------------------------------------------- diff --git a/.test-infra/jenkins/job_beam_ListView_Create.groovy b/.test-infra/jenkins/job_beam_ListView_Create.groovy new file mode 100644 index 0000000..9c304da --- /dev/null +++ b/.test-infra/jenkins/job_beam_ListView_Create.groovy @@ -0,0 +1,42 @@ +/* + * 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. + */ + +// This creates a standard List View for Beam. It filters out executors not associated with Beam +// and pulls in all jobs which start with 'beam_'. +listView('Beam') { + description('Jenkins builds for the Beam project.') + filterBuildQueue() + filterExecutors() + jobs { + regex(/beam_.+/) + } + jobFilters { + all() + } + columns { + status() + weather() + name() + lastSuccess() + lastFailure() + lastDuration() + lastBuildConsole() + buildButton() + } +} +