beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject [2/3] beam git commit: Rename seed job so it is first in glob used by prior seed job
Date Tue, 24 Oct 2017 18:36:19 GMT
Rename seed job so it is first in glob used by prior seed job


Project: http://git-wip-us.apache.org/repos/asf/beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/c4401866
Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/c4401866
Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/c4401866

Branch: refs/heads/master
Commit: c4401866015ca0886249120d0375d7d5ce6e970a
Parents: 2e6ed5f
Author: Kenneth Knowles <kenn@apache.org>
Authored: Tue Oct 24 11:35:07 2017 -0700
Committer: Kenneth Knowles <kenn@apache.org>
Committed: Tue Oct 24 11:35:07 2017 -0700

----------------------------------------------------------------------
 .test-infra/jenkins/job_00_seed.groovy | 114 ++++++++++++++++++++++++++++
 .test-infra/jenkins/job_seed.groovy    | 114 ----------------------------
 2 files changed, 114 insertions(+), 114 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam/blob/c4401866/.test-infra/jenkins/job_00_seed.groovy
----------------------------------------------------------------------
diff --git a/.test-infra/jenkins/job_00_seed.groovy b/.test-infra/jenkins/job_00_seed.groovy
new file mode 100644
index 0000000..2cd43c3
--- /dev/null
+++ b/.test-infra/jenkins/job_00_seed.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') {
+  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')
+
+        // ${ghprbPullId} 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/${ghprbPullId}/*:refs/remotes/origin/pr/${ghprbPullId}/*']
+                .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(60)
+      abortBuild()
+    }
+  }
+
+  triggers {
+    // Run once per day
+    cron('0 */6 * * *')
+
+    githubPullRequest {
+      admins(['asfbot'])
+      useGitHubHooks()
+      orgWhitelist(['apache'])
+      allowMembersOfWhitelistedOrgsAsAdmin()
+      permitAll()
+
+      // Also run when manually kicked on a pull request
+      triggerPhrase('Run Seed Job')
+      onlyTriggerPhrase()
+
+      extensions {
+        commitStatus {
+          context("Jenkins: 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')
+    }
+  }
+}

http://git-wip-us.apache.org/repos/asf/beam/blob/c4401866/.test-infra/jenkins/job_seed.groovy
----------------------------------------------------------------------
diff --git a/.test-infra/jenkins/job_seed.groovy b/.test-infra/jenkins/job_seed.groovy
deleted file mode 100644
index 2cd43c3..0000000
--- a/.test-infra/jenkins/job_seed.groovy
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- * 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') {
-  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')
-
-        // ${ghprbPullId} 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/${ghprbPullId}/*:refs/remotes/origin/pr/${ghprbPullId}/*']
-                .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(60)
-      abortBuild()
-    }
-  }
-
-  triggers {
-    // Run once per day
-    cron('0 */6 * * *')
-
-    githubPullRequest {
-      admins(['asfbot'])
-      useGitHubHooks()
-      orgWhitelist(['apache'])
-      allowMembersOfWhitelistedOrgsAsAdmin()
-      permitAll()
-
-      // Also run when manually kicked on a pull request
-      triggerPhrase('Run Seed Job')
-      onlyTriggerPhrase()
-
-      extensions {
-        commitStatus {
-          context("Jenkins: 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')
-    }
-  }
-}


Mime
View raw message