aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/jenkins/scripts/clone-all.sh12
-rwxr-xr-xbootstrap/jenkins/scripts/gen-java-jobs.py9
-rwxr-xr-xbootstrap/jenkins/scripts/ls-projects.sh9
-rwxr-xr-xbootstrap/jenkins/scripts/ls-top-poms.sh9
-rwxr-xr-xbootstrap/jenkins/scripts/pull-all.sh9
-rwxr-xr-xbootstrap/jenkins/vagrant/bootstrap.sh9
-rwxr-xr-xbootstrap/jenkins/vagrant/build-all-docker.sh9
-rwxr-xr-xbootstrap/jenkins/vagrant/build-all-java.sh9
-rwxr-xr-xbootstrap/jenkins/vagrant/jenkins-init-1.sh9
-rwxr-xr-xbootstrap/jenkins/vagrant/jenkins-init-2.sh9
-rwxr-xr-xbootstrap/jenkins/vagrant/jjb-init.sh9
11 files changed, 101 insertions, 1 deletions
diff --git a/bootstrap/jenkins/scripts/clone-all.sh b/bootstrap/jenkins/scripts/clone-all.sh
index 77a6cafdc..d9da805e3 100755
--- a/bootstrap/jenkins/scripts/clone-all.sh
+++ b/bootstrap/jenkins/scripts/clone-all.sh
@@ -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
diff --git a/bootstrap/jenkins/scripts/gen-java-jobs.py b/bootstrap/jenkins/scripts/gen-java-jobs.py
index 0da988083..0fc538886 100755
--- a/bootstrap/jenkins/scripts/gen-java-jobs.py
+++ b/bootstrap/jenkins/scripts/gen-java-jobs.py
@@ -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
diff --git a/bootstrap/jenkins/scripts/ls-projects.sh b/bootstrap/jenkins/scripts/ls-projects.sh
index 17b8c7893..f49d35ee0 100755
--- a/bootstrap/jenkins/scripts/ls-projects.sh
+++ b/bootstrap/jenkins/scripts/ls-projects.sh
@@ -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
diff --git a/bootstrap/jenkins/scripts/ls-top-poms.sh b/bootstrap/jenkins/scripts/ls-top-poms.sh
index e856ee977..c04086a80 100755
--- a/bootstrap/jenkins/scripts/ls-top-poms.sh
+++ b/bootstrap/jenkins/scripts/ls-top-poms.sh
@@ -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
diff --git a/bootstrap/jenkins/scripts/pull-all.sh b/bootstrap/jenkins/scripts/pull-all.sh
index 6c2560f5c..9afa841b3 100755
--- a/bootstrap/jenkins/scripts/pull-all.sh
+++ b/bootstrap/jenkins/scripts/pull-all.sh
@@ -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
diff --git a/bootstrap/jenkins/vagrant/bootstrap.sh b/bootstrap/jenkins/vagrant/bootstrap.sh
index 7c7fe5eb2..fd0caf5c6 100755
--- a/bootstrap/jenkins/vagrant/bootstrap.sh
+++ b/bootstrap/jenkins/vagrant/bootstrap.sh
@@ -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
diff --git a/bootstrap/jenkins/vagrant/build-all-docker.sh b/bootstrap/jenkins/vagrant/build-all-docker.sh
index 081bb1246..b55b0fa80 100755
--- a/bootstrap/jenkins/vagrant/build-all-docker.sh
+++ b/bootstrap/jenkins/vagrant/build-all-docker.sh
@@ -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
diff --git a/bootstrap/jenkins/vagrant/build-all-java.sh b/bootstrap/jenkins/vagrant/build-all-java.sh
index 67333b76f..158e6dd85 100755
--- a/bootstrap/jenkins/vagrant/build-all-java.sh
+++ b/bootstrap/jenkins/vagrant/build-all-java.sh
@@ -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
diff --git a/bootstrap/jenkins/vagrant/jenkins-init-1.sh b/bootstrap/jenkins/vagrant/jenkins-init-1.sh
index 104f040c2..1f0a80859 100755
--- a/bootstrap/jenkins/vagrant/jenkins-init-1.sh
+++ b/bootstrap/jenkins/vagrant/jenkins-init-1.sh
@@ -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"
diff --git a/bootstrap/jenkins/vagrant/jenkins-init-2.sh b/bootstrap/jenkins/vagrant/jenkins-init-2.sh
index 0c5dd9950..a6cddbb10 100755
--- a/bootstrap/jenkins/vagrant/jenkins-init-2.sh
+++ b/bootstrap/jenkins/vagrant/jenkins-init-2.sh
@@ -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
diff --git a/bootstrap/jenkins/vagrant/jjb-init.sh b/bootstrap/jenkins/vagrant/jjb-init.sh
index 5f32dbb85..e9adeb63b 100755
--- a/bootstrap/jenkins/vagrant/jjb-init.sh
+++ b/bootstrap/jenkins/vagrant/jjb-init.sh
@@ -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