From b4ef891f0c4edc2bfa69daa7d114daa78b524f0c Mon Sep 17 00:00:00 2001 From: LinuxServer-CI Date: Fri, 18 Jan 2019 03:49:48 +0000 Subject: [PATCH] Bot Updating Templated Files --- Jenkinsfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f2912d1..4403f51 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -82,14 +82,10 @@ pipeline { script{ env.PACKAGE_TAG = sh( script: '''#!/bin/bash - http_code=$(curl --write-out %{http_code} -s -o /dev/null \ - https://raw.githubusercontent.com/${LS_USER}/${LS_REPO}/master/package_versions.txt) - if [[ "${http_code}" -ne 200 ]] ; then - echo none + if [ -e package_versions.txt ] ; then + cat package_versions.txt | md5sum | cut -c1-8 else - curl -s \ - https://raw.githubusercontent.com/${LS_USER}/${LS_REPO}/master/package_versions.txt \ - | md5sum | cut -c1-8 + echo none fi''', returnStdout: true).trim() }