You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ho...@apache.org on 2018/05/17 17:14:51 UTC

[incubator-openwhisk] branch master updated: Add ASF Headers to .groovy source files.

This is an automated email from the ASF dual-hosted git repository.

houshengbo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
     new 7478908  Add ASF Headers to .groovy source files.
7478908 is described below

commit 7478908a36fc44930a9afc9e9a2ee9baa0a74e27
Author: Matt Rutkowski <mr...@us.ibm.com>
AuthorDate: Thu May 17 11:21:59 2018 -0500

    Add ASF Headers to .groovy source files.
---
 tools/dev/src/main/groovy/couchdbViews.groovy | 28 +++++++++++++--------------
 tools/jenkins/apache/dockerhub.groovy         | 19 +++++++++++++++++-
 2 files changed, 31 insertions(+), 16 deletions(-)

diff --git a/tools/dev/src/main/groovy/couchdbViews.groovy b/tools/dev/src/main/groovy/couchdbViews.groovy
index 2de008a..4db872b 100644
--- a/tools/dev/src/main/groovy/couchdbViews.groovy
+++ b/tools/dev/src/main/groovy/couchdbViews.groovy
@@ -1,20 +1,18 @@
 /*
- * 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
+ * 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
+ *     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.
+ * 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.
  */
 
 import groovy.json.JsonSlurper
@@ -58,4 +56,4 @@ private static File createFreshBuildDir() {
 private static String parseViewJs(String jsonText) {
     jsonText.replace("\\n", "")
             .replace('\"','"')
-}
\ No newline at end of file
+}
diff --git a/tools/jenkins/apache/dockerhub.groovy b/tools/jenkins/apache/dockerhub.groovy
index c804b23..fb8c736 100644
--- a/tools/jenkins/apache/dockerhub.groovy
+++ b/tools/jenkins/apache/dockerhub.groovy
@@ -1,4 +1,21 @@
 #!groovy
+/*
+ * 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.
+ */
+
 node('xenial&&!H21&&!H22&&!H11&&!ubuntu-eu3') {
   sh "env"
   sh "docker version"
@@ -30,6 +47,6 @@ node('xenial&&!H21&&!H22&&!H11&&!ubuntu-eu3') {
     withCredentials([string(credentialsId: 'openwhisk_slack_token', variable: 'OPENWHISK_SLACK_TOKEN')]) {
       sh "curl -X POST --data-urlencode 'payload={\"channel\": \"#dev\", \"username\": \"whiskbot\", \"text\": \"OpenWhisk Docker Images build and posted to https://hub.docker.com/u/openwhisk by Jenkins job ${BUILD_URL}\", \"icon_emoji\": \":openwhisk:\"}' https://hooks.slack.com/services/${OPENWHISK_SLACK_TOKEN}"
     }
-    
+
   }
 }

-- 
To stop receiving notification emails like this one, please contact
houshengbo@apache.org.