diff options
author | LaMont, William (wl2432) <wl2432@us.att.com> | 2018-08-31 10:56:17 -0400 |
---|---|---|
committer | LaMont, William (wl2432) <wl2432@us.att.com> | 2018-08-31 11:10:32 -0400 |
commit | 571d6f65cf5e0e5334956dbe11730fd47820b947 (patch) | |
tree | ca23e0f64ca2968b4a933cb6a0bb0b4781bc24e8 /src/main/jenkins/deploy.groovy | |
parent | 6ed92ea7526678f245a9123d2ee97a6a9e2c3bf1 (diff) |
initial code for cacher
Issue-ID: AAI-1473
Change-Id: I8babe91e79f5c1e6e97b0f5b6dc827b8c5caec80
Signed-off-by: LaMont, William (wl2432) <wl2432@att.com>
Diffstat (limited to 'src/main/jenkins/deploy.groovy')
-rw-r--r-- | src/main/jenkins/deploy.groovy | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/jenkins/deploy.groovy b/src/main/jenkins/deploy.groovy new file mode 100644 index 0000000..1a000e3 --- /dev/null +++ b/src/main/jenkins/deploy.groovy @@ -0,0 +1,15 @@ +def deployService(){ + stage 'Deploying Service' + + // get the jenkinsfile root directory + def ROOT_DIR = pwd() + ROOT_DIR = "${ROOT_DIR}"+'/src/main/kubernetes' + echo "ROOTDIR : ${ROOT_DIR}" + sh "/opt/app/kubernetes/v1.3.4/bin/kubectl --kubeconfig=${ROOT_DIR}/kubectl.conf replace --force --cascade -f ${ROOT_DIR}/${artifactId}-svc.yaml" + sh "/opt/app/kubernetes/v1.3.4/bin/kubectl --kubeconfig=${ROOT_DIR}/kubectl.conf replace --force --cascade -f ${ROOT_DIR}/${artifactId}-rc.yaml" +} +return this + + + + |