Skip to content

Commit 9875779

Browse files
author
Sean Sundberg
committed
Updates pipeline with v1.1.3
1 parent f89f8c7 commit 9875779

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

Jenkinsfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
def pipelineVersion='1.1.1'
1+
def pipelineVersion='1.1.3'
22
println "Pipeline version: ${pipelineVersion}"
33
/*
44
* This is a vanilla Jenkins pipeline that relies on the Jenkins kubernetes plugin to dynamically provision agents for
@@ -226,8 +226,10 @@ spec:
226226
git fetch --tags
227227
git tag -l
228228
229+
COMMIT_HASH=$(git rev-parse HEAD)
229230
git checkout -b ${BRANCH} --track origin/${BRANCH}
230231
git branch --set-upstream-to=origin/${BRANCH} ${BRANCH}
232+
git reset --hard ${COMMIT_HASH}
231233
232234
git config --global user.name "Jenkins Pipeline"
233235
git config --global user.email "[email protected]"
@@ -372,10 +374,12 @@ spec:
372374
373375
# sleep for 10 seconds to allow enough time for the server to start
374376
sleep 10
375-
while [ $(curl -sL -w "%{http_code}\\n" "${URL}/health" -o /dev/null --connect-timeout 3 --max-time 5 --retry 3 --retry-max-time 30) != "200" ]; do
377+
echo "Health check start"
378+
while [[ $(curl -sL -w "%{http_code}\\n" "${URL}/health" -o /dev/null --connect-timeout 3 --max-time 5 --retry 3 --retry-max-time 30) != "200" ]]; do
376379
sleep 30
380+
echo "Health check failure. Remaining retries: $sleep_countdown"
377381
sleep_countdown=$((sleep_countdown-1))
378-
if [ sleep_countdown=0 ]; then
382+
if [[ $sleep_countdown -eq 0 ]]; then
379383
echo "Could not reach health endpoint: ${URL}/health"
380384
exit 1;
381385
fi

chart/base/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: v1
22
appVersion: "1.0"
33
description: A Helm chart for Kubernetes
44
name: base
5-
version: 1.1.1
5+
version: 1.1.3
66
branch: dev

chart/base/templates/_helpers.tpl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ Expand the name of the chart.
66
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
77
{{- end -}}
88

9-
{{- define "starter-kit.appname" -}}
10-
{{ $namespace := $.Release.Namespace }}
11-
{{- printf "%s-%s" $namespace (include "starter-kit.name" .) -}}
12-
{{- end -}}
13-
149
{{/*
1510
Create a default fully qualified app name.
1611
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).

chart/base/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ partOf: inventory
4444

4545
connectsTo: inventory-management-bff-solution
4646

47-
runtime: nodejs
47+
runtime: js

pipeline.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 1.1.1
1+
version: 1.1.3
22
name: nodejs
33
runtime: nodejs
44
build-tool: node

0 commit comments

Comments
 (0)