Skip to content

Commit

Permalink
Bot Updating Templated Files
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxServer-CI committed Jan 20, 2019
1 parent 638ad46 commit 9a2cfb9
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 9a2cfb9

Please sign in to comment.