Skip to content
This repository was archived by the owner on Feb 24, 2022. It is now read-only.

Commit 4bc7514

Browse files
Bot Updating Templated Files
1 parent 616ce96 commit 4bc7514

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Jenkinsfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,10 @@ pipeline {
8282
script{
8383
env.PACKAGE_TAG = sh(
8484
script: '''#!/bin/bash
85-
http_code=$(curl --write-out %{http_code} -s -o /dev/null \
86-
https://raw.githubusercontent.com/${LS_USER}/${LS_REPO}/master/package_versions.txt)
87-
if [[ "${http_code}" -ne 200 ]] ; then
88-
echo none
85+
if [ -e package_versions.txt ] ; then
86+
cat package_versions.txt | md5sum | cut -c1-8
8987
else
90-
curl -s \
91-
https://raw.githubusercontent.com/${LS_USER}/${LS_REPO}/master/package_versions.txt \
92-
| md5sum | cut -c1-8
88+
echo none
9389
fi''',
9490
returnStdout: true).trim()
9591
}

0 commit comments

Comments
 (0)