From 31d872468c24bfbcf6f76badce487eeacb336981 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 12 Mar 2025 06:43:17 -0500 Subject: [PATCH] Add Jenkins build pipeline --- ci/Jenkinsfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ci/Jenkinsfile diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile new file mode 100644 index 0000000..851d675 --- /dev/null +++ b/ci/Jenkinsfile @@ -0,0 +1,25 @@ +@Library('containerimages')_ +buildContainerImage2(project: 'packages') + +def POD_YAML = ''' +spec: + containers: + - name: jnlp + volumeMounts: + - name: kubectl + mountPath: /bin/kubectl + readOnly: true + volumes: + - name: kubectl + hostPath: + path: /usr/bin/kubectl + type: File +''' + +podTemplate(yaml: POD_YAML) { + node(POD_LABEL) { + stage('Deploy') { + sh 'kubectl rollout restart deployment -n receipts receipts' + } + } +}