Add license header to vagrant-jenkins scripts 63/6563/1
authorGary Wu <gary.i.wu@huawei.com>
Wed, 2 Aug 2017 19:03:10 +0000 (12:03 -0700)
committerGary Wu <gary.i.wu@huawei.com>
Wed, 2 Aug 2017 19:03:10 +0000 (12:03 -0700)
Change-Id: I506c964f1ea85e3336d9b359751940b568c34506
Issue-id: INT-53
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
bootstrap/jenkins/scripts/clone-all.sh
bootstrap/jenkins/scripts/gen-java-jobs.py
bootstrap/jenkins/scripts/ls-projects.sh
bootstrap/jenkins/scripts/ls-top-poms.sh
bootstrap/jenkins/scripts/pull-all.sh
bootstrap/jenkins/vagrant/bootstrap.sh
bootstrap/jenkins/vagrant/build-all-docker.sh
bootstrap/jenkins/vagrant/build-all-java.sh
bootstrap/jenkins/vagrant/jenkins-init-1.sh
bootstrap/jenkins/vagrant/jenkins-init-2.sh
bootstrap/jenkins/vagrant/jjb-init.sh

index 77a6caf..d9da805 100755 (executable)
@@ -1,4 +1,14 @@
-#!/bin/sh
+#!/bin/bash
+#
+# Copyright 2017 Huawei Technologies Co., Ltd.
+#
+# 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
+#
+
 while read p; do
     if [ ! -e $p ]; then
        echo $p
index 0da9880..0fc5388 100755 (executable)
@@ -1,4 +1,13 @@
 #!/usr/bin/env python
+#
+# Copyright 2017 Huawei Technologies Co., Ltd.
+#
+# 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
+#
 import fileinput
 import os
 import subprocess
index 17b8c78..f49d35e 100755 (executable)
@@ -1,2 +1,11 @@
 #!/bin/sh
+#
+# Copyright 2017 Huawei Technologies Co., Ltd.
+#
+# 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
+#
 ssh -p 29418 gerrit.onap.org gerrit ls-projects | grep -v All
index e856ee9..c04086a 100755 (executable)
@@ -1,2 +1,11 @@
 #!/bin/sh
+#
+# Copyright 2017 Huawei Technologies Co., Ltd.
+#
+# 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
+#
 find $1 -mindepth 0 -type d -exec test -e "{}/pom.xml" ';' -prune -printf "%P\n" | sort
index 6c2560f..9afa841 100755 (executable)
@@ -1,4 +1,13 @@
 #!/bin/bash
+#
+# Copyright 2017 Huawei Technologies Co., Ltd.
+#
+# 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
+#
 while read p; do
     if [ ! -e $p ]; then
        echo $p
index 7c7fe5e..fd0caf5 100755 (executable)
@@ -1,4 +1,13 @@
 #!/bin/bash
+#
+# Copyright 2017 Huawei Technologies Co., Ltd.
+#
+# 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
+#
 
 function restart_jenkins() {
     sudo systemctl restart jenkins
index 081bb12..b55b0fa 100755 (executable)
@@ -1,4 +1,13 @@
 #!/bin/bash
+#
+# Copyright 2017 Huawei Technologies Co., Ltd.
+#
+# 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
+#
 
 # build all jobs
 cd ~jenkins
index 67333b7..158e6dd 100755 (executable)
@@ -1,4 +1,13 @@
 #!/bin/bash
+#
+# Copyright 2017 Huawei Technologies Co., Ltd.
+#
+# 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
+#
 
 # build all jobs
 cd ~jenkins
index 104f040..1f0a808 100755 (executable)
@@ -1,4 +1,13 @@
 #!/bin/bash
+#
+# Copyright 2017 Huawei Technologies Co., Ltd.
+#
+# 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
+#
 
 git config --global user.email "jenkins@localhost"
 git config --global user.name "jenkins"
index 0c5dd99..a6cddbb 100755 (executable)
@@ -1,4 +1,13 @@
 #!/bin/bash
+#
+# Copyright 2017 Huawei Technologies Co., Ltd.
+#
+# 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
+#
 
 cd ~jenkins
 ln -s /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar
index 5f32dbb..e9adeb6 100755 (executable)
@@ -1,4 +1,13 @@
 #!/bin/bash
+#
+# Copyright 2017 Huawei Technologies Co., Ltd.
+#
+# 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
+#
 
 cd ~jenkins
 git add -A