| /*kubespray installation script test*/ |
| /* no label, executor is determined by JJB */ |
| label "${params.buildNode}" |
| stage ("Clean workspace") { |
| stage ("Parse deployment configuration file") { |
| sh returnStdout: true, script: 'git clone -b ${branch} ${configRepoUrl}' |
| script { deployment_config = readYaml file: "${configRepoBaseDir}${configRepoFile}" } |
| stage ('Checkout Automation-Tools Repo') { |
| git clone https://gerrit.opencord.org/automation-tools |
| stage ('Install Kubespray on Nodes') { |
| pushd $WORKSPACE/automation-tools/kubespray-installer |
| ./setup.sh -i ${podName} ${deployment_config.node1.ip} ${deployment_config.node2.ip} ${deployment_config.node3.ip} |
| stage ('Validate Kube Config File') { |
| pushd $WORKSPACE/automation-tools/kubespray-installer |
| source setup.sh -s ${podName} |