Skip to content

Commit 8acb895

Browse files
Bot Updating Templated Files
1 parent f253714 commit 8acb895

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
@@ -84,14 +84,10 @@ pipeline {
8484
script{
8585
env.PACKAGE_TAG = sh(
8686
script: '''#!/bin/bash
87-
http_code=$(curl --write-out %{http_code} -s -o /dev/null \
88-
https://raw.githubusercontent.com/${LS_USER}/${LS_REPO}/master/package_versions.txt)
89-
if [[ "${http_code}" -ne 200 ]] ; then
90-
echo none
87+
if [ -e package_versions.txt ] ; then
88+
cat package_versions.txt | md5sum | cut -c1-8
9189
else
92-
curl -s \
93-
https://raw.githubusercontent.com/${LS_USER}/${LS_REPO}/master/package_versions.txt \
94-
| md5sum | cut -c1-8
90+
echo none
9591
fi''',
9692
returnStdout: true).trim()
9793
}

0 commit comments

Comments
 (0)