Skip to content

Commit d9f0b79

Browse files
Bot Updating Templated Files
1 parent 902dc60 commit d9f0b79

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Jenkinsfile

+3-7
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,10 @@ pipeline {
7979
script{
8080
env.PACKAGE_TAG = sh(
8181
script: '''#!/bin/bash
82-
http_code=$(curl --write-out %{http_code} -s -o /dev/null \
83-
https://raw.githubusercontent.com/${LS_USER}/${LS_REPO}/master/package_versions.txt)
84-
if [[ "${http_code}" -ne 200 ]] ; then
85-
echo none
82+
if [ -e package_versions.txt ] ; then
83+
cat package_versions.txt | md5sum | cut -c1-8
8684
else
87-
curl -s \
88-
https://raw.githubusercontent.com/${LS_USER}/${LS_REPO}/master/package_versions.txt \
89-
| md5sum | cut -c1-8
85+
echo none
9086
fi''',
9187
returnStdout: true).trim()
9288
}

0 commit comments

Comments
 (0)