aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/jenkins/vagrant
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2017-08-02 12:03:10 -0700
committerGary Wu <gary.i.wu@huawei.com>2017-08-02 12:03:10 -0700
commit5cccfa9ffc8c1bb487763571149b71062e55110c (patch)
tree483eaac1b83e21f97619f073c6571656ae493c7c /bootstrap/jenkins/vagrant
parente283bd2822ddff64e05473d786b0e17479c13e1a (diff)
Add license header to vagrant-jenkins scripts
Change-Id: I506c964f1ea85e3336d9b359751940b568c34506 Issue-id: INT-53 Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'bootstrap/jenkins/vagrant')
-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
6 files changed, 54 insertions, 0 deletions
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