From 9a2cfb9a45f11714b7462d4d15030b5d34cba3d5 Mon Sep 17 00:00:00 2001 From: LinuxServer-CI Date: Sun, 20 Jan 2019 01:15:19 +0000 Subject: [PATCH] Bot Updating Templated Files --- Jenkinsfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f65c5ec..a38c75b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -79,14 +79,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() }