diff options
author | 2021-12-14 17:07:08 -0800 | |
---|---|---|
committer | 2021-12-15 14:39:35 -0800 | |
commit | 2a0d0e553fe5b6df3cf7ad389467ac5fbef62297 (patch) | |
tree | 55bff12c6d98a74cee966ae28f3029dfeadcb6f7 /jenkins-config/managed-config-files/openstackUserData | |
parent | 79fa61adf601c04891a2ca5f0f3da4d65e51e5c7 (diff) |
Feat: Add JCasC managed config files
Change-Id: Ibe1e731577cac990d078e03b4be21fdfc0c5b82c
Issue-ID: CIMAN-33
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
Diffstat (limited to 'jenkins-config/managed-config-files/openstackUserData')
-rw-r--r-- | jenkins-config/managed-config-files/openstackUserData/jenkins-init-script/config-params.yaml | 3 | ||||
-rw-r--r-- | jenkins-config/managed-config-files/openstackUserData/jenkins-init-script/content | 15 |
2 files changed, 18 insertions, 0 deletions
diff --git a/jenkins-config/managed-config-files/openstackUserData/jenkins-init-script/config-params.yaml b/jenkins-config/managed-config-files/openstackUserData/jenkins-init-script/config-params.yaml new file mode 100644 index 000000000..c57555af5 --- /dev/null +++ b/jenkins-config/managed-config-files/openstackUserData/jenkins-init-script/config-params.yaml @@ -0,0 +1,3 @@ +--- +name: "jenkins-init-script" +comment: "CI management init" diff --git a/jenkins-config/managed-config-files/openstackUserData/jenkins-init-script/content b/jenkins-config/managed-config-files/openstackUserData/jenkins-init-script/content new file mode 100644 index 000000000..10ec58582 --- /dev/null +++ b/jenkins-config/managed-config-files/openstackUserData/jenkins-init-script/content @@ -0,0 +1,15 @@ +#!/bin/bash +gerrit=gerrit.onap.org +until host ${gerrit} &>/dev/null +do + echo "Waiting until ${gerrit} is resolvable..." +done + +git clone --recurse-submodules https://${gerrit}/r/ci-management /opt/ciman +/opt/ciman/jjb/global-jjb/jenkins-init-scripts/init.sh + +IPADDR=$(facter ipaddress) +HOSTNAME=$(facter hostname) +FQDN=$(facter fqdn) + +echo "${IPADDR} ${HOSTNAME} ${FQDN}" >> /etc/hosts |